how can i add my math library libm.a in my project

May 07, 2005 3 Replies

try to compute float point data in my program, but i can't add the libm.a, who can help me?


Try adding -lm at the end of your linker statement.

Leon

Leon Heller, G1HSM http://www.geocities.com/leon_heller

but where should I add the linker? Is it right that I right click the project name and then choose "set compiler options"-directories-filling the blanks of "link options": libm.a-lm

What about the "search path"? Shall I fill the "library" with the install path of libm.a---...\gnu\powerpc-easi\nt\powerpc-easi\lib\

who knows, please? thank you for all your help!

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required