I can't compile this program!

japan ngmnhat@yahoo.com
Mon Feb 17 15:58:00 GMT 2003


Although I included math.h in the source code, why I must add -lm
option when we compile one program using math functions???

Ex: gcc -lm -o test test.c

(test.c uses math functions and have already included math.h!)

What libs we must link when compiling like that?

Thanks very much!

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com



More information about the Gcc-help mailing list