From mboxrd@z Thu Jan 1 00:00:00 1970 From: pete@toyon.com To: gcc-gnats@gcc.gnu.org Subject: libstdc++/3070: unresolved fsqrt at link using sqrt and Date: Wed, 06 Jun 2001 18:16:00 -0000 Message-id: <20010607011430.25389.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00215.html List-Id: >Number: 3070 >Category: libstdc++ >Synopsis: unresolved fsqrt at link using sqrt and >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Jun 06 18:16:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Pete Stieber >Release: gcc version 3.1 20010605 (experimental) >Organization: >Environment: i686-pc-linux-gnu Red Hat 7.1 >Description: Error linking cpp modules that use and sqrt. /tmp/ccg374LU.o: In function `std::sqrt(double)': /tmp/ccg374LU.o(.gnu.linkonce.t._ZSt4sqrtd+0x2a): undefined reference to `fsqrt' collect2: ld returned 1 exit status >How-To-Repeat: gcc test.cpp >Fix: Use instead of . >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="test.cpp" Content-Disposition: inline; filename="test.cpp" #include using namespace std; int main() { sqrt(10.0); return 1; }