🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1681

Re: Problem with GCC-2.4.5, and libg++-2.4 compiling IV-3.1...

#1681
From: Steve Wu
Date: Tue, 13 Jul 1993 00:58
39 lines
2212 bytes
aad@scr.siemens.com (Anthony A. Datri) writes:

>>The bug is apparently in the Sun header files which should set size_t
>>to unsigned long, not int. libg++-2.4 fixes this problem.

>Like I just said, IT DOESN'T.  In fact, String.cc contains

>	inline static int slen(const char* t) // inline  strlen
>	{
>	  if (t == 0)
>	    return 0;
>	  else
>	  {
>	    const char* a = t;
>	    while (*a++ != 0);
>	    return a - 1 - t;
>	  }
>	}

>Now, it's difficult to know if this is ever actually used as strlen, but
>it sure looks to me like it says "int".

  It does. libg++-2.4 fixes the problem. slen is not strlen, strlen is
a Sun libc call and slen is only a inline used in String.cc.

  The problem you mentioned about gcc and interview is becuase you
have the wrong libg++. I also encountered this problem which was
caused by gcc-2.3.3 compiled libg++-2.4. I recompile libg++-2.4 with 2.4.5
and then compile interviews, everything works fine. I also use Sun CC
(cfront) compile interviews both of them work fine.

  The good thing about Sun CC is: it uses shared libraries.

  steve
--
stevew@helios.unl.edu  |=| \ Fender / |=| ... smoke on the water, fire in
                       |=|   \    /   |=| the sky...   Smoke on the water.
stevew@hoss.unl.edu    |=|     \/     |=|     (36 bars guitar solo)
		      Deep purple, the best
Technical Details
Message-ID: <21t1aoINNhjc@crcnis1.unl.edu>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!math.ohio-state.edu!wupost!crcnis1.unl.edu!stevew
References: <SMILEY.93Jul9175300@maharet.im.hou.compaq.com> <CA146p.21v@scr.siemens.com> <1993Jul12.073948.7933@ericsson.se> <CA28DM.CKy@scr.siemens.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10ba33,2a85f141102c1320
X-Google-Attributes: gid10ba33,public
X-Google-Thread: 101a2b,2a85f141102c1320
X-Google-Attributes: gid101a2b,public
X-Google-ArrivalTime: 1993-07-12 19:55:28 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!math.ohio-state.edu!wupost!crcnis1.unl.edu!stevew
From: stevew@helios.unl.edu (Steve Wu)
Newsgroups: comp.windows.interviews,gnu.g++.help
Subject: Re: Problem with GCC-2.4.5, and libg++-2.4 compiling IV-3.1...
Date: 13 Jul 1993 00:58:00 GMT
Organization: University of Nebraska--Lincoln 
Lines: 39
Message-ID: <21t1aoINNhjc@crcnis1.unl.edu>
References: <SMILEY.93Jul9175300@maharet.im.hou.compaq.com> <CA146p.21v@scr.siemens.com> <1993Jul12.073948.7933@ericsson.se> <CA28DM.CKy@scr.siemens.com>
NNTP-Posting-Host: helios.unl.edu