home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!olivea!gossip.pyramid.com!pyramid!athertn!usenet
- From: scottr@atherton.com (Scott F. Rasmussen)
- Newsgroups: gnu.g++.help
- Subject: trouble building libg++2.2 with gcc 2.3.1
- Keywords: libg++, gcc, wchar_t, conflicting definitions
- Message-ID: <C0I7KH.IIA@atherton.com>
- Date: 7 Jan 93 21:55:27 GMT
- Sender: usenet@atherton.com (News Administrator)
- Followup-To: scottr@atherton.com
- Organization: Atherton Technology, Inc.
- Lines: 40
- Nntp-Posting-Host: lancelot
-
-
- I am trying to build libg++2.2 with gcc 2.3.1 and get the following
- error. I used the config sun-sparc-sunos4 for my sparc mp running 4.1.2.
- Any help is appreciated. I am in the process of getting libg++2.3 but I
- thought this might not be related to that.
- Here's the error...
-
- gcc -v -I.. -I. -I./../iostream -I./../g++-include -c AllocRing.cc
- Reading specs from /usr/local/lib/gcc-lib/sparc/2.3.1/specs
- gcc version 2.3.1
- /usr/local/lib/gcc-lib/sparc/2.3.1/cpp -lang-c++ -nostdinc++ -v -I..
- -I. -I./../iostream -I./../g++-include -undef -D__GNUC__=2 -D__GNUG__=2
- -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__
- -D__sparc -D__sun -D__unix AllocRing.cc /usr/tmp/cca15048.i
- GNU CPP version 2.3.1 (sparc)
- /usr/local/lib/gcc-lib/sparc/2.3.1/cc1plus /usr/tmp/cca15048.i -quiet
- -dumpbase AllocRing.cc -version -o /usr/tmp/cca15048.s
- GNU C++ version 2.3.1 (sparc) compiled by CC.
- In file included from ./../g++-include/sys/types.h:15, from
- /usr/include/unistd.h:72, from ./../g++-include/unistd.h:25, from
- /std.h:28, from AllocRing.cc:22:
- /usr/include/sys/types.h:24: conflicting types for `wchar_t'
- /../g++-include/stddef.h:11: previous declaration of `wchar_t'
-
- from the output of gcc -E here are the conflicting definitions...
-
- # 41 "/usr/local/lib/gcc-lib/sparc/2.3.1/include/stddef.h" 3
- ...
- typedef __wchar_t wchar_t;
-
- # 1 "/usr/include/sys/stdtypes.h" 1 3
- .
- typedef unsigned short wchar_t;
-
- Thanks for any help...
- --
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=
- Scott Rasmussen scottr@atherton.com
- Atherton Technology {sun|decwrl}!athertn.com
-