Date: Thu, 28 Nov 1996 10:56:40 GMT From: kvhk AT ivs4 DOT barco DOT com (Koen Van Herck) Message-Id: <9611281056.AA07279@ivs4.> To: an118 AT chebucto DOT ns DOT ca Cc: djgpp AT delorie DOT com In-Reply-To: <57j1rb$p7p@News.Dal.Ca> (an118@chebucto.ns.ca) Subject: Re: Need help with DJGPP's "_dos_ds" macro Reply-To: Koen DOT VanHerck AT barco DOT com > > I've read the stuff on selectors and "_dos_ds" in the DJGPP v.2 FAQ, > as well as the "far pointer" simulator functions that use it. > > When I compile my test program, however, gcc gives my an error saying > the "_dos_ds" function is undefined. I've included the library "farptr.h" and > tried to compile a program with this line after having used Allegro to set > my video mode to 13h: > > > _farpokeb(_dos_ds, 0, 23); > > It says the "_dos_ds" function isn't defined. It's in go32.h, just say #include #include > > Also, the compiler won't let me link to the "farptr.h" library by > putting "-lfarptr" switch on. It says it can't find the file "-lfarptr". > It does this with other libraries I try to link this way too. But it will > let me link to "iostream.h" by putting a "-liostream" on the end of my > command line. Why does it do this, and not recognize the "_dos_ds" even > though I've included "farptr.h" in my code ? > > Thanks very much > Graham > You should not link farptr. It is inluded in the standard libc library. ---- Koen Van Herck Electronic Design Engineer E-mail: Koen DOT VanHerck AT barco DOT com BBBB AAA RRRR CCC OOO B A R C O V I S U A L S Y S T E M S B B A A R R C O O A division of Barco Projection Systems B BB A AAA R RR C OO O OO B B A A R R C O O Noordlaan 5 Tel +32 (0)56 36 85 71 BBBB A A R R CCC OOO B-8520 Kuurne Fax +32 (0)56 36 83 55