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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux