Mail Archives: djgpp/1996/11/28/05:12:53
>
> 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 <go32.h>
#include <sys/farptr.h>
>
> 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
- Raw text -