----- Original Message ----- From: "Gao Zhengsu" <g...@clarkson.edu> To: <mspgcc-users@lists.sourceforge.net> Sent: Thursday, April 08, 2004 8:24 PM Subject: Re: [Mspgcc-users] Need Help For Math Function.
> Hi, Leon: > Where should I put -lm, can you give me more detail, for example, if I want > to use the sqrt(), How should I do. Thank you very much! It should be added to the end of the linker command line: ld ... -lm Or if you are compiling and linking together, at the end of that line: gcc .. -lm It's been a long time since I used mspgcc and I can't remember how the compilation process usually goes. Leon