i want to use sqrt and atan2 (or at least sin / cos ) but i couldn't get it to work all day long. (basic operations like * / etc. work fine for both float and double)
at first i tried to include math.h but the compiler said something about build in function sqrt. but without the math.h it says >code03e8.c: In function `MyEvtGetEvent2': >code03e8.c:98: warning: type mismatch in implicit declaration for built-in function `sqrt' >d:\temp/ccwgtf7S.o: In function `MyEvtGetEvent2': >code03e8.c:98: undefined reference to `sqrt' all the other functions from math.h don't work either... >code03e8.c:99: undefined reference to `atan2' what do i have to do to pursuade all this stuff to work? the compiler knows where the library is... >C:\>m68k-palmos-gcc -print-file-name=libm.a >/prc-tools/H-i586-cygwin32/m68k-palmos/lib/libm.a searched the net and the newsgroups but i still can't figure out how to do it... please help, felix -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
