public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: db@rtsffm.com
To: gcc-gnats@gcc.gnu.org
Subject: libstdc++/3593: link error when using ofstream
Date: Fri, 06 Jul 2001 07:26:00 -0000	[thread overview]
Message-ID: <20010706142456.1669.qmail@sourceware.cygnus.com> (raw)

>Number:         3593
>Category:       libstdc++
>Synopsis:       link error when using ofstream
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 06 07:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dirk Bonekamper
>Release:        3.0
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
When I try compile and link a program that contains an std::ofstream object, the linking fails with an undefined reference:
> g++ linktest.cxx
/tmp/cct0UdsP.o: In function `std::codecvt<char, char, __mbstate_t> const& std::use_facet<std::codecvt<char, char, __mbstate_t> >(std::locale const&)':
/tmp/cct0UdsP.o(.gnu.linkonce.t._ZSt9use_facetISt7codecvtIcc11__mbstate_tEERKT_RKSt6locale+0x7): undefined reference to `std::codecvt<char, char, __mbstate_t>::id'
collect2: ld returned 1 exit status

I'm using binutils 2.11.2.
Grepping nm output for libstdc++.so returns:
00061468 B std::codecvt<char, char, mbstate_t>::id
>How-To-Repeat:
#include <fstream>
int main()
{ std::ofstream ofs; }
>Fix:
No idea :-(
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2001-07-06  7:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-06  7:26 db [this message]
2001-07-16 12:25 bkoz
2001-10-10 13:46 pme
2002-03-29 13:36 Craig Rodrigues

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=20010706142456.1669.qmail@sourceware.cygnus.com \
    --to=db@rtsffm.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: link
Be 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).