8 Apr
2005
8 Apr
'05
12:19
Have to tell the linker to link the math library as well. Use -lm in your makefile/command line. Colin Carter wrote:
Hi, I have just moved into Linux and compiled, linked and executed a simple C program with X Window. This required standard #include <...> But when I tried to use sqrt() I added #include
but x = sqrt ( x ); gives me 'undefined reference 'sqrt' Any ideas? Regards, Colin