Date: Sun, 23 Jul 1995 13:47:45 +0300 (IDT) From: Eli Zaretskii To: Todd Muhlfelder Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: problem with compiling other libs? 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.