From: an118 AT chebucto DOT ns DOT ca (Graham Howard Wile) Newsgroups: comp.os.msdos.djgpp Subject: Need help with DJGPP's "_dos_ds" macro Date: 28 Nov 1996 03:44:43 GMT Organization: Chebucto Community Net Lines: 24 Message-ID: <57j1rb$p7p@News.Dal.Ca> NNTP-Posting-Host: chebucto.ns.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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. 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 --