Mail Archives: djgpp/1995/07/11/02:06:18
> I'm having problems compiling a program that I wrote with turboc 2.0. I get
> an error " undefined reference to '<func>'" where <func> is cputs, gotoxy
> etc. I have included pc.h and gppconio.h as well as used the -lpc switch.
> what gives?
Did you put -lpc *after* all the object files and libraries which use
PC-specific routines? GCC uses a single-pass linker, so if it sees
some PC functions after libpc.a was already scanned, it won't find them
and will complain.
If -lpc is the last thing on the command line, please post the command
line, because maybe something else is causing this.
- Raw text -