This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem when compiling




#include <math.h>
...
...
...
RES= pow(X,Y);
...
...

Iget this message
/tmp/cc4REunT.o(.text+0x2ac): undefined reference to `pow'
collect2: ld returned 1 exit status

In the directory /urs/include I have the file math.h.

I have no problem when compliling with g++.

What can I do if I want to complile with gcc ?

Sincerly yours.


_________________________________________________________________
Discutez en ligne avec vos amis, essayez MSN Messenger : 
http://messenger.msn.fr/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]