* String prototype problems: g++, OSF/1
@ 1996-10-25 4:00 Kenji Matsuoka
0 siblings, 0 replies; only message in thread
From: Kenji Matsuoka @ 1996-10-25 4:00 UTC (permalink / raw)
I've recently installed gcc 2.7.2.1 and libg++ 2.7.2 on my Digital
Unix (OSF/1) 4.0 system. When I try to compile a program that uses
<string.h>, I get lots of "conflict" errors. Does anyone know what's
wrong with my installation?
Here's a partial stderr stream:
In file included from /usr/include/strings.h:100,
from /usr/local/lib/gcc-lib/alpha-dec-osf4.0/2.7.2.1/include/string.h:154,
from /usr/local/lib/g++-include/std/cstring.h:18,
from /usr/local/lib/g++-include/cstring:5,
from /usr/local/lib/g++-include/std.h:25,
from /usr/local/lib/g++-include/getopt.h:39,
from /usr/local/lib/gcc-lib/alpha-dec-osf4.0/2.7.2.1/include/stdio.h:391,
from pstoedit.cc:23:
/usr/local/lib/g++-include/string.h:45: declaration of C function `struct StrRep * Scat(struct StrRep *, const char *, int, const char *, int, const char *, int)' conflicts with
/usr/local/lib/g++-include/string.h:44: previous declaration `struct StrRep * Scat(struct StrRep *, const char *, int, const char *, int)' here
/usr/local/lib/g++-include/string.h:160: declaration of C function `void cat(const class String &, const class SubString &, class String &)' conflicts with
/usr/local/lib/g++-include/string.h:159: previous declaration `void cat(const class String &, const class String &, class String &)' here
/usr/local/lib/g++-include/string.h:160: warning: `cat(const String &, const SubString &, String &)' is already a friend of class `String'
/usr/local/lib/g++-include/string.h:160: warning: previous friend declaration of `cat(const String &, const SubString &, String &)'
...
/usr/local/lib/g++-include/string.h:353: confused by earlier errors, bailing out
Stop.
--
Kenji Andrew Matsuoka
kenji@hana.physics.sunysb.edu
http://hana.physics.sunysb.edu/~kenji/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-10-25 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-25 4:00 String prototype problems: g++, OSF/1 Kenji Matsuoka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox