public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/3070: unresolved fsqrt at link using sqrt and <cmath>
@ 2001-06-06 18:16 pete
  0 siblings, 0 replies; 4+ messages in thread
From: pete @ 2001-06-06 18:16 UTC (permalink / raw)
  To: gcc-gnats

>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;
}


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/3070: unresolved fsqrt at link using sqrt and <cmath>
@ 2001-06-12 13:58 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-06-12 13:58 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-prs, pete

Synopsis: unresolved fsqrt at link using sqrt and <cmath>

State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Tue Jun 12 13:42:43 2001
State-Changed-Why:
    Fixed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3070&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/3070: unresolved fsqrt at link using sqrt and <cmath>
@ 2001-06-12 13:16 Benjamin Kosnik
  0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Kosnik @ 2001-06-12 13:16 UTC (permalink / raw)
  To: bkoz; +Cc: gcc-prs

The following reply was made to PR libstdc++/3070; it has been noted by GNATS.

From: Benjamin Kosnik <bkoz@redhat.com>
To: "Peter J. Stieber" <pete@toyon.com>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/3070: unresolved fsqrt at link using sqrt and <cmath>
Date: Tue, 12 Jun 2001 13:15:43 -0700 (PDT)

 just cc' gcc-gnats@gcc.gnu.org, like I did, so the bug database has a 
 record of this exchange. 
 
 I'll take care of closing the PR. 
 
 thanks!
 
 > after noticing changes to libstdc++, rebuilt and installed
 > 
 > gcc version 3.1 20010611 (experimental)
 > 
 > and the problem was gone!!!


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/3070: unresolved fsqrt at link using sqrt and <cmath>
@ 2001-06-11 12:07 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-06-11 12:07 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-prs, nobody, pete

Synopsis: unresolved fsqrt at link using sqrt and <cmath>

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Mon Jun 11 12:07:24 2001
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Mon Jun 11 12:07:24 2001
State-Changed-Why:
    Please try this again: I'm unable to reproduce with CVS gcc.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3070&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-06-12 13:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-06 18:16 libstdc++/3070: unresolved fsqrt at link using sqrt and <cmath> pete
2001-06-11 12:07 bkoz
2001-06-12 13:16 Benjamin Kosnik
2001-06-12 13:58 bkoz

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).