www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/23/07:12:08

Date: Sun, 23 Jul 1995 13:47:45 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Todd Muhlfelder <twm AT escape DOT com>
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019