This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

missing prototypes in libstdc++-v3 (cmath)


Hi,

the current gcc CVS version with libstdc++-v3 enabled has problems compiling
the following one-liner:

#include <cmath>

The command line and output is

~/tmp>/afs/mpa/data/martin/ugcc/bin/g++ -v -c -ansi -pedantic --save-temps test.cxx
Reading specs from /afs/mpa/data/martin/ugcc/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 20000511 (experimental)
 /afs/mpa/data/martin/ugcc/lib/gcc-lib/i686-pc-linux-gnu/2.96/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__cplusplus
-trigraphs -D__STRICT_ANSI__ -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -pedantic -Acpu(i386) -Amachine(i386) -D__i386 -D__i386__
-D__tune_pentiumpro__ test.cxx test.ii
GNU CPP version 2.96 20000511 (experimental) (cpplib)
 (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /afs/mpa/data/martin/ugcc/include/g++-v3
 /usr/local/include
 /afs/mpa/data/martin/ugcc/lib/gcc-lib/i686-pc-linux-gnu/2.96/include
 /afs/mpa/data/martin/ugcc/i686-pc-linux-gnu/include
 /usr/include
End of search list.
 /afs/mpa/data/martin/ugcc/lib/gcc-lib/i686-pc-linux-gnu/2.96/cc1plus test.ii -quiet -dumpbase test.cc -pedantic -ansi -version -o test.s
GNU C++ version 2.96 20000511 (experimental) (i686-pc-linux-gnu) compiled by GNU C version 2.96 20000511 (experimental).
In file included from /afs/mpa/data/martin/ugcc/include/g++-v3/cmath:2,
                 from test.cxx:1:
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h: In function `float std::atan2 (float,
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h: float)':
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h:118: `::atan2f' undeclared (first use here)
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h: In function `float std::tan (float)':
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h:127: `::tanf' undeclared (first use here)
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h: In function `float std::sinh (float)':
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h:135: `::sinhf' undeclared (first use here)
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h: In function `float std::tanh (float)':
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h:143: `::tanhf' undeclared (first use here)
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h: In function `float std::cosh (float)':
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h:151: `::coshf' undeclared (first use here)
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h: In function `float std::exp (float)':
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h:159: `::expf' undeclared (first use here)
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h: In function `float std::log (float)':
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h:167: `::logf' undeclared (first use here)
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h: In function `float std::log10 (float)':
/afs/mpa/data/martin/ugcc/include/g++-v3/bits/std_cmath.h:175: `::log10f' undeclared (first use here)


Preprocessed source code is attached.

Cheers,
  Martin Reinecke

test.ii


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]