From: "+ +" <wrobbie@my-Deja.com>
To: egcs@egcs.cygnus.com
Subject: GCC 2.95.1 static string won't compile on SCO-OSR5
Date: Thu, 30 Sep 1999 18:02:00 -0000 [thread overview]
Message-ID: <MGAMFKJBJNKKGAAA@my-deja.com> (raw)
Message-ID: <19990930180200.Y7JtPtOFsd7aXsVHB6tgCS739BUkhmFAfPZDX4p87rw@z> (raw)
Hellow,
I'm trying to compile the following example:
----------
#include <string>
class ctest
{
public:
static string foo;
};
string ctest::foo;
void main()
{
ctest::foo = "bar";
}
----------
Which is no problem using EGCS 1.1.1 on the same machine. GCC 2.95.1 won't
do it however:
----------
[ildev2] /usr/rob> /usr/local/gcc-2.95.1/bin/g++ test.cc
/usr/local/gcc-2.95.1/lib/gcc-lib/i586-pc-
sco3.2v5.0.0/2.95.1/libstdc++.a(cstrmain.o): fatal error: symbol `__as__t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem
plate2b0i0PCc` multiply-defined, also in file /usr/tmp/cc4lMcjd.o
collect2: ld returned 1 exit status [ildev2] /usr/rob> ----------
I can't make any sense of this error... Does this mean my GCC install is broken (again), or is this invalid C++?
Thanks!
Rob Kramer
robk@cyberway.com.sg
--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.
next reply other threads:[~1999-09-30 18:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-08 23:27 + + [this message]
1999-09-09 8:12 ` Robert Lipe
1999-09-30 18:02 ` Robert Lipe
1999-09-30 18:02 ` + +
1999-09-09 19:48 + +
1999-09-10 22:08 ` Robert Lipe
1999-09-30 18:02 ` Robert Lipe
1999-09-30 18:02 ` + +
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=MGAMFKJBJNKKGAAA@my-deja.com \
--to=wrobbie@my-deja.com \
--cc=egcs@egcs.cygnus.com \
/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).