Mail Archives: djgpp/1995/04/20/02:23:42
> I have a strange error, every time i include gppconio.h (or conio.h) and
> compile the source to an object and link it with the other parts. I get the
> 'undeclared reference' error... What am i doing wrong ? Must is add an
> parameter to the compiler options (-l...)..
Functions declared in gppconio.h (or conio.h) are NOT inside the
default libc.a library. They are in the libpc.a library which is
not searched by default by the linker. Append -lpc to your
compilation command line, and your problem will go away.
Btw, this is all explained in the DJGPP FAQ list, available as
faqNNN.zip from the same place you got DJGPP (NNN is the latest
revision number).
- Raw text -