From: kunst AT prl DOT philips DOT nl Subject: Re: Creating a library To: mag1007 AT hermes DOT cam DOT ac DOT uk (Martin Granell) Date: Thu, 26 May 1994 12:46:13 +0100 (METDST) Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list) > > I still can't get the library to link. I create the library, put it > in c:\djgpp\lib, as libwatcp.a, then use gcc -o merc -lwatcp.a *.o > It compiles fine, but when it tries to link I get lots of undefined > refernces. It is finding the library, but not the symbols. If I run nm -s > libwatcp.a, it has the functions as _. So the functions are > there, but not being found.....Very frustrating... > Here are the makefiles for the library and my routines.... > > Any help would be appreciated. > > then use gcc -o merc -lwatcp.a *.o Try: gcc -o merc *.o -lwatcp.a Pieter Kunst (kunst AT prl DOT philips DOT nl)