home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / g / help / 1646 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  2.1 KB

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