home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / g / help / 1199 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.8 KB  |  54 lines

  1. Newsgroups: gnu.g++.help
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!nuscc!isclimcl
  3. From: isclimcl@nuscc.nus.sg (Lim Choon Long)
  4. Subject: installing libg++ 2.2 in sun386i
  5. Message-ID: <1992Sep8.064915.23291@nuscc.nus.sg>
  6. Organization: National University of Singapore
  7. Date: Tue, 8 Sep 1992 06:49:15 GMT
  8. Lines: 44
  9.  
  10. Hi,
  11.  
  12. I have installed gcc 2.2.2 on a sun386i running 4.0.2 but I have problems
  13. nstalling libg++-2.2.
  14.  
  15. (1) when I 'make' in the libg++-2.2 directory, I got:
  16. ---------------------
  17. cc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c
  18. AllocRing.cc 
  19. cc: Option -n misformed as -nostdinc++
  20. *** Error code 1
  21. make: Fatal error: Command failed for target `AllocRing.o'
  22. ---------------------
  23.  
  24. (2) If I 'make' in the /libg++-2.2/libg++ directory, I got:
  25. ---------------------
  26. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c
  27. AllocRing.cc
  28. In file included from ./std.h:26, from AllocRing.cc:22:
  29. ./../g++-include/string.h:28: declaration of `int  strlen (const char
  30. *)'
  31. <built-in>:0: conflicts with built-in declaration `long unsigned int
  32. strlen (const char *)'
  33. *** Error code 1
  34. make: Fatal error: Command failed for target `AllocRing.o'
  35. ---------------------
  36.  
  37. (3) I found the following message in g++-include/string.h:
  38. ---------------------
  39. // NOTE: If you get a error message from g++ that this declaration
  40. // conflicts with a <built-in> declaration of strlen(), that usually
  41. // indicates that __SIZE_TYPE__ is incorrectly defined by gcc.
  42. // Fix or add SIZE_TYPE in the appropriate file in gcc/config/*.h.
  43. ---------------------
  44.  
  45. Can someone please explain to me what are the steps involved in (3)?
  46. Besides these, is there any other fixes to be made in order to get g++
  47. running in my system?
  48.  
  49. Thanks.
  50.  
  51. Choon-Long Lim
  52. email: limcl@iscs.nus.sg
  53.        limcl@nusdiscs.bitnet
  54.