Date: Fri, 11 Feb 94 00:30:20 EST From: simon AT tesla DOT ee DOT mcgill DOT ca ( Simon Chamlian tlf 341-5303) To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: help Hi, I am using the following GNU CPP program: go32 version 1.08 gcc version 2.2.2 gas version 1.38.1 I tried to compile simple programs and they are working fine. So, the installation is well done. Then I tried a mathematical function, and I got an error. The program is : #include #include main() { double fk=2.06; printf(" res = %e \n", log(fk)); } When I tried to compile this on a 486DX2 machine (387 integrated in CPU). I have an error as we can see in the screen dump below. I also tried set 387=YES and then compile it. I got the same error message. Does anyone has a clue why I have this error? Does the header file math.h have a bug? Am I doing anything wrong? Comments are appreciated. Thanks in advance. -Simon ----------------------------------- screen dump ------------------------- D:\COMPILER\GNUCPP\FICHIER>gcc test.cc test.o: Undefined symbol _log referenced from text segment D:\COMPILER\GNUCPP\FICHIER>