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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment