🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #219

installing libg++ 2.2 in sun386i

#219
From: Lim Choon Long
Date: Tue, 08 Sep 1992 06:49
44 lines
1862 bytes
Hi,

I have installed gcc 2.2.2 on a sun386i running 4.0.2 but I have problems
nstalling libg++-2.2.

(1) when I 'make' in the libg++-2.2 directory, I got:
---------------------
cc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c
AllocRing.cc 
cc: Option -n misformed as -nostdinc++
*** Error code 1
make: Fatal error: Command failed for target `AllocRing.o'
---------------------

(2) If I 'make' in the /libg++-2.2/libg++ directory, I got:
---------------------
gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c
AllocRing.cc
In file included from ./std.h:26, from AllocRing.cc:22:
./../g++-include/string.h:28: declaration of `int  strlen (const char
*)'
<built-in>:0: conflicts with built-in declaration `long unsigned int
strlen (const char *)'
*** Error code 1
make: Fatal error: Command failed for target `AllocRing.o'
---------------------

(3) I found the following message in g++-include/string.h:
---------------------
// NOTE: If you get a error message from g++ that this declaration
// conflicts with a <built-in> declaration of strlen(), that usually
// indicates that __SIZE_TYPE__ is incorrectly defined by gcc.
// Fix or add SIZE_TYPE in the appropriate file in gcc/config/*.h.
---------------------

Can someone please explain to me what are the steps involved in (3)?
Besides these, is there any other fixes to be made in order to get g++
running in my system?

Thanks.

Choon-Long Lim
email: limcl@iscs.nus.sg
       limcl@nusdiscs.bitnet
Technical Details
Message-ID: <1992Sep8.064915.23291@nuscc.nus.sg>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!nuscc!isclimcl

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!nuscc!isclimcl
From: isclimcl@nuscc.nus.sg (Lim Choon Long)
Subject: installing libg++ 2.2 in sun386i
Message-ID: <1992Sep8.064915.23291@nuscc.nus.sg>
Organization: National University of Singapore
Date: Tue, 8 Sep 1992 06:49:15 GMT
Lines: 44