From: "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de>
To: girod@stybba.ntc.nokia.com
Cc: oliva@dcc.unicamp.br, egcs@egcs.cygnus.com
Subject: Re: virtual inheritance: optimization for empty objects
Date: Sun, 14 Mar 1999 11:52:00 -0000 [thread overview]
Message-ID: <199903141946.UAA09213@mira.isdn.cs.tu-berlin.de> (raw)
In-Reply-To: < 1yk8wjdhf7.fsf@sinkku.ntc.nokia.com > (message from Marc Girod on14 Mar 1999 21:01:32 +0200)
> foo.C:36: `cout' undeclared in namespace `std'
> foo.C:46: `endl' undeclared in namespace `std'
>
> I used std::cout and std::endl. I works without -fnew-abi.
>
> I guess I need to rebuild the libstdc++, or what exactly should I
> rebuild?...
You need much more than that ... you need to rewrite libstdc++. With
-fnew-abi, std is a namespace. So if cout is not in namespace std
(which it isn't in libstdc++ v2), it is an error to refer to it via
std::cout.
You can try arrange libstdc++ to use it consistently, either by
putting the library in std::, or by removing the extra qualifiers. As
an alternative, you could try libstdc++ v3, which gets this right.
Regards,
Martin
WARNING: multiple messages have this Message-ID
From: "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de>
To: girod@stybba.ntc.nokia.com
Cc: oliva@dcc.unicamp.br, egcs@egcs.cygnus.com
Subject: Re: virtual inheritance: optimization for empty objects
Date: Wed, 31 Mar 1999 23:46:00 -0000 [thread overview]
Message-ID: <199903141946.UAA09213@mira.isdn.cs.tu-berlin.de> (raw)
Message-ID: <19990331234600.yhGw9mJAQuQYtbiebCdRrmPe6vkogOwZ5wHeYqqieME@z> (raw)
In-Reply-To: <1yk8wjdhf7.fsf@sinkku.ntc.nokia.com>
> foo.C:36: `cout' undeclared in namespace `std'
> foo.C:46: `endl' undeclared in namespace `std'
>
> I used std::cout and std::endl. I works without -fnew-abi.
>
> I guess I need to rebuild the libstdc++, or what exactly should I
> rebuild?...
You need much more than that ... you need to rewrite libstdc++. With
-fnew-abi, std is a namespace. So if cout is not in namespace std
(which it isn't in libstdc++ v2), it is an error to refer to it via
std::cout.
You can try arrange libstdc++ to use it consistently, either by
putting the library in std::, or by removing the extra qualifiers. As
an alternative, you could try libstdc++ v3, which gets this right.
Regards,
Martin
next prev parent reply other threads:[~1999-03-14 11:52 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <nms.mail.egcs/199903042105.WAA19132@count.math.uni-sb.de>
[not found] ` <nms.mail.egcs/orn21tueds.fsf@araguaia.dcc.unicamp.br>
1999-03-14 11:01 ` Marc Girod
1999-03-14 11:15 ` Alexandre Oliva
[not found] ` < orlngz3n0r.fsf@dcc.unicamp.br >
1999-03-15 3:44 ` F. Heitkamp
[not found] ` < 199903151145.GAA14544@pc1.fred.org >
1999-03-15 16:07 ` Martin v. Loewis
1999-03-31 23:46 ` Martin v. Loewis
1999-03-31 23:46 ` F. Heitkamp
1999-03-31 23:46 ` Alexandre Oliva
[not found] ` < 1yk8wjdhf7.fsf@sinkku.ntc.nokia.com >
1999-03-14 11:45 ` Joe Buck
1999-03-31 23:46 ` Joe Buck
1999-03-14 11:52 ` Martin v. Loewis [this message]
1999-03-31 23:46 ` Martin v. Loewis
1999-03-31 23:46 ` Marc Girod
[not found] <199903042105.WAA19132.cygnus.egcs@count.math.uni-sb.de>
1999-03-06 17:09 ` Jason Merrill
1999-03-31 23:46 ` Jason Merrill
1999-03-04 13:05 Alexander Schiemann
1999-03-04 13:39 ` Alexandre Oliva
1999-03-31 23:46 ` Alexandre Oliva
1999-03-31 23:46 ` Alexander Schiemann
-- strict thread matches above, loose matches on Subject: below --
1999-03-04 12:56 Alexander Schiemann
1999-03-31 23:46 ` Alexander Schiemann
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=199903141946.UAA09213@mira.isdn.cs.tu-berlin.de \
--to=martin@mira.isdn.cs.tu-berlin.de \
--cc=egcs@egcs.cygnus.com \
--cc=girod@stybba.ntc.nokia.com \
--cc=oliva@dcc.unicamp.br \
/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).