Thursday, November 25, 2010

Using the Gnu Math Library

If you want to use sin() in the gnu compiler for C, you have to use the -lm compiler option. You don't need it for the C++ compiler.

Note the library name will be libm.so, which is usually a symbolic link to a library name that includes the version such as libm.so.2

No comments:

Post a Comment