Mail Archives: djgpp/1994/02/11/10:18:57
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 <stdio.h>
#include <math.h>
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>
- Raw text -