Date: Tue, 9 Aug 94 19:11:12 EDT From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) To: OKRA AT max DOT tiac DOT net Cc: djgpp AT sun DOT soe DOT clarkson DOT edu, wrig0025 AT gold DOT tc DOT umn DOT edu Subject: Re: (fwd) DJGPP and math functions. Reply-To: babcock AT cfa DOT harvard DOT edu > I'm having some odd problems with djgpp. I'm trynig to compile a program > that compiles successfully with Borland C. But when I try to compile it > with djgpp I get "undefined reference to atan, acos, fabs, pow10, etc..." > errors. I've tried the -lm option, and my LIBRARY_PATH variable points > to libm.a, but no matter what I try I get the same error. Just a guess: is the -lm option in the right place in the gcc command line? It should be at the end.