2005-12-09 02:17 AM
2005-12-08 06:10 AM
Hi,
I would like to use math library,but I'm not able :( This is my simple code; #include ''modm.h'' #include ''math.h'' double acos(double x); double test,x; main() { test = acos(x); } I use Cosmic C compiler,but I get these errors; ...testmath.lkf:1 symbol _acos$L not defined (Debug\main.o ) ...testmath.lkf:1 symbol _acos not defined (Debug\main.o ) What am I missing?? Thanx2005-12-08 08:45 AM
I have never used the cosmic c compiler, but it looks like you forgot to link with the c library. Something akin to the ''-lm'' flag in gcc. Check the compiler settings for a method to link with the math library.
I hope that helps.2005-12-08 07:30 PM
2005-12-09 02:17 AM
Thank you very much!!!! ;)
Now it works very fine!! :-] I missed to add float library in linker command line...