home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / g / help / 1479 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.9 KB  |  54 lines

  1. Newsgroups: gnu.g++.help
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!nsisrv!fox!rt
  3. From: rtrom@cen.com (Richard Tom)
  4. Subject: Re: Help compile libg++2.2 (almost have it)
  5. Message-ID: <1992Nov23.214527.23597@nsisrv.gsfc.nasa.gov>
  6. Followup-To: gnu.g++.help
  7. Keywords: libg++,iostream install,dec5000
  8. Sender: rt@fox (Richard Tom)
  9. Nntp-Posting-Host: fox.gsfc.nasa.gov
  10. Organization: Century Computing, Inc.
  11. References: <1992Nov23.172435.8111@brtph560.bnr.ca> <1992Nov23.180553.9257@sarah.albany.edu>
  12. Date: Mon, 23 Nov 1992 21:45:27 GMT
  13. Lines: 39
  14.  
  15. John,
  16.  
  17.     The documentation for libg++ states that you must have the same
  18. version or greater of g++ to build libg++.  I was using g++ 2.2.2 and building
  19. libg++ 2.2 and still had the problem you had:
  20.  
  21. >`if [ -f ${rootprefix}../../gcc/gcc ] ;  then echo ${rootprefix}../../gcc/gcc -B
  22. >${rootprefix}../../gcc/ ;  else echo gcc ; fi` -g  -I. -I.. -I. -I./../src -I./.
  23. >./g++-include -c `if [ -f ${rootprefix}../../gcc/gcc ] ;  then echo -I${rootpref
  24. >ix}../../gcc/include ;  else echo ; fi` sbufvform.C
  25. >sbufvform.C: In method `int  streambuf::vform (const char *, char *)':
  26. >sbufvform.C:248: warning: implicit declaration of function `__builtin_alignof'
  27. >sbufvform.C:248: parse error before `4'
  28. sbufvform.C:248: parse error before `4'
  29. >sbufvform.C:248: parse error before `['
  30. >sbufvform.C:260: parse error before `4'
  31. >sbufvform.C:260: parse error before `4'
  32. >sbufvform.C:260: parse error before `)'
  33. >.
  34. >. similar errors
  35. >.
  36. >sbufvform.C:427: parse error before `4'
  37. >sbufvform.C:427: parse error before `)'
  38. >*** Error code 1
  39. >Stop.
  40.  
  41.  
  42. The quick and dirty hack I did was to add the following line after the last
  43. #include statement in the files sbufvform.C and sbufvscan.C:
  44.  
  45. #define __builtin_alignof __alignof__
  46.  
  47. I'd say it's a dirty hack, but I did get libg++ 2.2 to build under
  48. Ultrix 4.3 on a DECstation 3100 with g++ (gcc) 2.2.2.
  49.  
  50.     Hope I've helped,
  51.  
  52.     Rich
  53.     rtom@cen.com
  54.