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

g++-3.2 <cmath> is borked on sparc



Hi,

I've mentioned this before, but it's still around and it seems like a
3.2-as-default show stopper so I thought I'd remind you and make the
others aware in case they weren't...

| (unstable)troup@vore:~$ cat test.C
| #include <cstdio>
| 
| int main (int argc, char **argv)
| {
|         printf("Hello\n");
|         return 0;
| 
| }
| (unstable)troup@vore:~$ echo "#include <cmath>" > test-with-cmath.C; cat test.C >> test-with-cmath.C
| (unstable)troup@vore:~$ g++ -o test{,.C}; echo $?
| 0
| (unstable)troup@vore:~$ g++-3.2 -o test{,.C}; echo $?
| 0
| (unstable)troup@vore:~$ g++ -o test-with-cmath{,.C}; echo $?
| 0
| (unstable)troup@vore:~$ g++-3.2 -o test-with-cmath{,.C}; echo $?
| In file included from test-with-cmath.C:1:
| /usr/include/c++/3.2/cmath: In function `long double std::acos(long double)':
| /usr/include/c++/3.2/cmath:109: `::acosl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::asin(long double)':
| /usr/include/c++/3.2/cmath:127: `::asinl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::atan(long double)':
| /usr/include/c++/3.2/cmath:145: `::atanl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::atan2(long double,
|    long double)':
| /usr/include/c++/3.2/cmath:164: `::atan2l' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::ceil(long double)':
| /usr/include/c++/3.2/cmath:183: `::ceill' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::cosh(long double)':
| /usr/include/c++/3.2/cmath:211: `::coshl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::exp(long double)':
| /usr/include/c++/3.2/cmath:229: `::expl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::floor(long double)':
| /usr/include/c++/3.2/cmath:257: `::floorl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::fmod(long double,
|    long double)':
| /usr/include/c++/3.2/cmath:276: `::fmodl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::frexp(long double,
|    int*)':
| /usr/include/c++/3.2/cmath:295: `::frexpl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::ldexp(long double,
|    int)':
| /usr/include/c++/3.2/cmath:315: `::ldexpl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::log(long double)':
| /usr/include/c++/3.2/cmath:334: `::logl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::log10(long double)':
| /usr/include/c++/3.2/cmath:352: `::log10l' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::modf(long double,
|    long double*)':
| /usr/include/c++/3.2/cmath:376: `::modfl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::pow(long double, long
|    double)':
| /usr/include/c++/3.2/cmath:410: `::powl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::sinh(long double)':
| /usr/include/c++/3.2/cmath:451: `::sinhl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::tan(long double)':
| /usr/include/c++/3.2/cmath:479: `::tanl' undeclared (first use here)
| /usr/include/c++/3.2/cmath: In function `long double std::tanh(long double)':
| /usr/include/c++/3.2/cmath:497: `::tanhl' undeclared (first use here)
| 1
| (unstable)troup@vore:~$

-- 
James



Reply to: