undefined reference to `pow'
Posted: Tue Apr 03, 2012 2:48 am
I'm sure that you've seen this error before, and I'm using codelite V3.5.5375 on Debian Squeeze, and for some reason my program will not sucessfully compile. I have all of the header files in the appropriate place and if the program only needs stdio.h then it will compile without problems, but for some reason the math.h file is not being linked/referenced or whatever the technical term is. I have not used codelite before but have used older IDE's where the header file path could be specifically set (e.g. Lattice C)
This is output from Output view panel:
Any help would be appreciated, thank you.
-Steve
This is output from Output view panel:
Code: Select all
----------Build Started--------
/bin/sh -c '"make" -j 4 -f "compoundInterest_wsp.mk"'
----------Building project:[ compoundInterest - Debug ]----------
make[1]: Entering directory `/home/steveoll/Documents/C/Codelite/compoundInterest'
gcc -o ./Debug/compoundInterest @"/home/steveoll/Documents/C/Codelite/compoundInterest/compoundInterest.txt" -L/usr/local/include -L.
./Debug/main.o: In function `main':
/home/steveoll/Documents/C/Codelite/compoundInterest/main.c:14: undefined reference to `pow'
collect2: ld returned 1 exit status
make[1]: *** [Debug/compoundInterest] Error 1
make[1]: Leaving directory `/home/steveoll/Documents/C/Codelite/compoundInterest'
make: *** [All] Error 2
----------Build Ended----------
1 errors, 0 warnings
-Steve