This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: I can't compile this program!
- From: japan <ngmnhat at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 17 Feb 2003 07:58:52 -0800 (PST)
- Subject: Re: I can't compile this program!
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