Article View: gnu.gcc.help
Article #51511Need help with gcc version 2.3.3 g++ problem
From: Jim Murff
Date: Thu, 13 May 1993 18:08
Date: Thu, 13 May 1993 18:08
63 lines
2439 bytes
2439 bytes
Hi;
I am having a problem and can't seem to solve it.(It could be a bug
but I thought I'd ask first. I have recently installed GCC 2.3.3 on a
Sun Sparc(4c) running sunos 4.1.2. GCC itself works fine and I am pleased with
it. I am having trouble with libg++.a. I tried to compile a hello.C program ::
#include <stream.h>
#include <istream.h>
#include <ostream.h>
main()
{
int x;
x = 1;
cout << "Hello World\n";
}
I got this result ::
ld: /usr/local/lib/libg++.a: warning: table of contents for archive is
out of date; rerun ranlib(1)
ld: Undefined symbol
_close__4File
_open__4FilePCcT1
__$_AllocRing
_open__4Filei7io_mode
___9AllocRingi
___4File
___4FileP6_iobuf
_setbuf__4FileiPc
_check_state__4File
_open__4FileP6_iobuf
__$_File
___4FilePCcT1
_error__4File
___ls__7ostreamPCc
_open__4FilePCc7io_mode11access_mode
___4FilePCc7io_mode11access_mode
___4Filei7io_mode
___1xyzzy__
_alloc__9AllocRingi
collect: /usr/bin/ld returned 2 exit status
So I reran ranlib on the library. I now get ::
> g++ hello.C
> ld: Undefined symbol
> ___ls__7ostreamPCc
> collect: /usr/bin/ld returned 2 exit status
I can't seem to get anywhere beyond this. Can someone help me out?? Do I need
to rebuild the release ??? I am unsure how to proceed. Thanks for you help.
Do I post a summary to the list?
-Jim Murff
-------------------------------------------------------------------------------
Jim Murff (murff@irt.com) Voice # (619)622-8878
IRT Corp, San Diego, CA. Corp # (619)450-4343
System Software Engineer/System Admin. Fax # (619)622-8888
-------------------------------------------------------------------------------
Technical Details
Message-ID:
<9305131757.AA11179@irt.com>Path:
arc1-ca.pugleaf.net!gmd.de!ira.uka.de!fauern!news.dfn.de!darwin.sura.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!irt.com!murffShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,7bd40741f16d2893,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-05-13 11:38:33 PST Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!fauern!news.dfn.de!darwin.sura.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!irt.com!murff From: murff@irt.com (Jim Murff) Newsgroups: gnu.gcc.help Subject: Need help with gcc version 2.3.3 g++ problem Date: 13 May 1993 14:08:25 -0400 Organization: GNUs Not Usenet Lines: 63 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9305131757.AA11179@irt.com>