This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++/8197: std::sin(float) causes undefined reference to sinf


>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:


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