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

libstdc++-2.10: <cmath> doesn't define trunc(...)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: libstdc++2.10
Version: 1:2.95.2-14
Severity: important

The attached C++ program doesn't build with g++-2.95.  According to the 
documentation it should, and under g++-3.0 it does build (using libstdc++-3)

This might actually be a glibc bug (math.h), please inspect and reassign if 
that's the case.

I cc'd this to debian-devel. Anybody knows why this's happening?

orion:libstdc++$ g++ trunc.cxx
trunc.cxx: In function `int main()':
trunc.cxx:6: implicit declaration of function `int trunc(...)'
orion:libstdc++$

Thanks,

- -- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux orion 2.4.3 #2 Thu May 24 21:48:24 EEST 2001 i686
Locale: LANG=C, LC_CTYPE=C
 
Versions of packages libstdc++2.10 depends on:
ii  libc6                         2.2.3-6    GNU C Library: Shared libraries 

- -- 
Eray Ozkural (exa) <erayo@cs.bilkent.edu.tr>
Comp. Sci. Dept., Bilkent University, Ankara
www: http://www.cs.bilkent.edu.tr/~erayo
GPG public key fingerprint: 360C 852F 88B0 A745 F31B  EA0F 7C07 AE16 874D 539C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7UOwffAeuFodNU5wRArChAJ4pEV4ywIuPCze6XIZ/3TMS9WEYlQCgp3WL
z5AF2ETetKgtYv6DvLY6DuY=
=N+pL
-----END PGP SIGNATURE-----
#include <cmath>
#include <iostream>

int main() {

   float a = trunc(3.5);
   std::cout << a << std::endl;

   return 0;
}

Reply to: