This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: 3.4.4 vs 3.2.5 ; fabs: cant use as a function..
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Ming-Xiang Fu <deadly at cmlab dot csie dot ntu dot edu dot tw>, gcc-help at gcc dot gnu dot org
- Date: Tue, 26 Jul 2005 09:33:16 -0500
- Subject: Re: 3.4.4 vs 3.2.5 ; fabs: cant use as a function..
Hi Ming-Xiang,
Are you using C (gcc) or C++ (g++)?
If you are using C, you are using #include <math.h>.
If you are using C++, you should be using #include <cmath>.
My advice is: don't use C header files in a C++ program. The C header file
may define a macro, when what you really want is a C++ function.
HTH,
--Eljay