Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: kenji@hana.physics.sunysb.edu (Kenji Matsuoka)
Subject: String prototype problems: g++, OSF/1
Date: 1996/10/25	[thread overview]
Message-ID: <54r0pe$82u@abel.ic.sunysb.edu> (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/



                 reply	other threads:[~1996-10-25  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox