This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17505] New: <cmath> calls acosf(), ceilf(), and other functions missing from system libraries
- From: "papadopo at shfj dot cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2004 18:32:32 -0000
- Subject: [Bug c++/17505] New: <cmath> calls acosf(), ceilf(), and other functions missing from system libraries
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
The following doesn't link on Solaris 8:
$ cat > foo.cc
#include <cmath>
int main() {
float f = 0.0;
f = std::acos(f);
}
$ g++ foo.cc
/tmp/ccEWrnML.o(.gnu.linkonce.t._ZSt4acosf+0xc): In function `std::acos(float)':
: undefined reference to `acosf'
$
While the following does link on the same Solaris 8:
$ cat > foo.cc
#include <cmath>
int main() {
float f = 0.0;
f = ::acos(f);
}
$ g++ foo.cc
$
This looks like a regression, I am able to reproduce the problem with gcc 3.4.2
and 3.4.1, but not gcc 3.3.4.
Maybe it is related to this paragraph in the release notes:
Many C math library functions are now recognized
as built-ins and optimized.
--
Summary: <cmath> calls acosf(), ceilf(), and other functions
missing from system libraries
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: papadopo at shfj dot cea dot fr
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17505