GP2X Noob : Math.h Linker Woes.


[hjd_uk]

Still Fresh
Joined
Jan 21, 2006
Messages
14
Age
43
Location
Sheffield, UK
Hi, im new to developing for linux on PC ( new to linux in general too),
Im developing with VisualStudio Express 2005, using the wiki arm-linux.rules, some SDL and bits of minimum lib.
I've got a test app working on my GP2x, ive included <math.h>, the compiler finds the code fine but the linker complains about the function calls:

Code:
Linking App.gpe...
Debug\main.o: In function `main':
main.cpp:(.text+0xa00): undefined reference to `sqrt'

Any ideas?
How can I fix it?

Thanks for any help, hjd_uk.
 
It just makes the linker look in the maths library for any unresolved symbols. "-lXXX" means link library "XXX", and the maths library is just called "m".
 
Back
Top