From: kagel AT quasar DOT bloomberg DOT com Date: Wed, 10 Jul 1996 12:55:15 -0400 Message-Id: <9607101655.AA12312@quasar.bloomberg.com > To: lolo AT einev0 DOT einev DOT ch Cc: djgpp AT delorie DOT com In-Reply-To: <31E3669E.6CC8@einev0.einev.ch> (message from lolo on Wed, 10 Jul 1996 10:15:26 +0200) Subject: Re: grx20, other question Reply-To: kagel AT dg1 DOT bloomberg DOT com From: lolo Date: Wed, 10 Jul 1996 10:15:26 +0200 I've unzipped grx20 in my DJGPP directory and done a MAKE. No problem. The news paths (INCLUDE and LIB) are correctly set in DJGPP.INV. The problem : When I use a grx fonction(for ex: GrSetMode) in my source and compile it I get a message of "undefined reference to 'GrSetMode'" But when I give a "gcc myprog.c .../grx20/lib/libgrx20.a" it's compile fine and my .EXE is working. The questions : Why must I give the path and name of the library to use it. And if it's right so, what is the role of the path to the grx library in my DJGPP.ENV No. Try: gcc -o myprog.exe myprog.c -L../grx20/lib -lgrx20 -L adds a directory to the list of paths that ld searches for libs and -lxxx specifies that a library named libxxx.a is to be searched for object resolution. -- Art S. Kagel, kagel AT quasar DOT bloomberg DOT com A proverb is no proverb to you 'till life has illustrated it. -- John Keats