I have recently started learning C as a side project. I am working under OpenSuse with the latest NetBeans using the GCC as toolset for compiling. One of the very first prog
Be sure that your are linking with the math library.
$ gcc myprog.c -lm
In C, you need to link to the math library:
Add this to the command line options:
-lm