3.4.4 vs 3.2.5 ; fabs: cant use as a function..

Eljay Love-Jensen eljay@adobe.com
Tue Jul 26 14:33:00 GMT 2005


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




More information about the Gcc-help mailing list