public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: pete@toyon.com To: gcc-gnats@gcc.gnu.org Subject: libstdc++/3070: unresolved fsqrt at link using sqrt and <cmath> Date: Wed, 06 Jun 2001 18:16:00 -0000 [thread overview] Message-ID: <20010607011430.25389.qmail@sourceware.cygnus.com> (raw) >Number: 3070 >Category: libstdc++ >Synopsis: unresolved fsqrt at link using sqrt and <cmath> >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 <cmath> 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 <math.h> instead of <cmath>. >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="test.cpp" Content-Disposition: inline; filename="test.cpp" #include <cmath> using namespace std; int main() { sqrt(10.0); return 1; }
next reply other threads:[~2001-06-06 18:16 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-06-06 18:16 pete [this message] 2001-06-11 12:07 bkoz 2001-06-12 13:16 Benjamin Kosnik 2001-06-12 13:58 bkoz
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20010607011430.25389.qmail@sourceware.cygnus.com \ --to=pete@toyon.com \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).