Date: Wed, 10 Jan 1996 17:52:24 +0100 To: djgpp AT delorie DOT com From: andrea DOT tasso AT galactica DOT it (andrea tasso) Subject: help ! undefined reference when compiling HI ! When compiling the following program with djgpp for dos #include void main (void) { double d , n ; d = 40.05 ; n = sin ( d ) ; } with the command: gcc -lm sin.c I get the following error message: sin.c(.text+0x20): undefined reference to 'sin'. The same program compile successfully with gcc for Linux. You note that hello.c ( in \samples\hello of djgpp dist ) compile also with djgpp for dos, and gcc sees math.h, and the math library libm.a is present. thank you very much for your help. ciao andrea