Mail Archives: djgpp/1995/07/23/07:12:08
On Sat, 22 Jul 1995, Todd Muhlfelder wrote:
> I got DJGPP's extra libs which were LIBGRX and CURSES (also allegro, but
> I wont bother with that noew).
> I tried to compile one of the exmaples like this: gcc mouse.c (in the
> grx) -lpc -lgrx and I got undefined reference to a lot of functions (i
> can tell that these functions should be declared in LIBGRX). What am I
> doing wrong?
The order of the libraries is important, because gcc uses a one-pass
linker. You should put -lpc after -lgrx and after -lcurses.
- Raw text -