This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/8197: std::sin(float) causes undefined reference to sinf
- From: ehrhardt at mathematik dot uni-ulm dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 11 Oct 2002 14:23:23 -0000
- Subject: libstdc++/8197: std::sin(float) causes undefined reference to sinf
- Reply-to: ehrhardt at mathematik dot uni-ulm dot de
>Number: 8197
>Category: libstdc++
>Synopsis: std::sin(float) causes undefined reference to sinf
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 11 07:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Christian Ehrhardt
>Release: gcc-3.2
>Organization:
>Environment:
Sun sparc Solaris 9, GNU-ld 2.13+elf patch from cvs
gcc passed all but a few test from make check
>Description:
Compiling a very simple Program using std::sin(float)
causes linker errors (undefined reference to sinf).
See below for details.
>How-To-Repeat:
theseus$ cat m.cc
#include <cmath>
int main () {
float a; std::sin(a);
}
theseus$ g++ -Wall m.cc
/tmp/ccOiTTC3.o: In function `std::sin(float)':
/tmp/ccOiTTC3.o(.gnu.linkonce.t._ZSt3sinf+0xc): undefined reference to `sinf'
collect2: ld returned 1 exit status
theseus$
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: