From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10ba33,de5a9fc678b97513,start X-Google-Attributes: gid10ba33,public X-Google-Thread: fee84,de5a9fc678b97513,start X-Google-Attributes: gidfee84,public From: kenji@hana.physics.sunysb.edu (Kenji Matsuoka) Subject: String prototype problems: g++, OSF/1 Date: 1996/10/25 Message-ID: <54r0pe$82u@abel.ic.sunysb.edu>#1/1 X-Deja-AN: 193636996 organization: SUNY Stony Brook, Physics newsgroups: comp.unix.osf.osf1,gnu.g++.help 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 , 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/