🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

g++ novice questions

#598
From: Xristos Kilitzirakis
Date: Mon, 23 Nov 1992 14:50
40 lines
1589 bytes

Dear guys,
    I have a terrible problem.When I complile my g++ programs, ld
errors all the time, like that:
------------------------------------------------------------------
<<ld: Undefined symbol 
   _cout 
   _check_state__4File 
   ___ls__7ostreami 
   _sputs__9streambufPCc 
collect: /usr/bin/ld returned 2 exit status
>> or
------------------------------------------------------------------
<<ld.so: warning: /usr/lib/libc.so.1.6 has older revision than expected 7
ld.so: warning: /usr/lib/libc.so.1.6 has older revision than expected 7
ld.so: warning: /usr/lib/libc.so.1.6 has older revision than expected 7
>> or 
--------------------------------------------------------------------
<<   ___8ifstreamPCcii 
   ___rs__FR7istreamRf 
   ___rs__FR7istreamRi 
   ___ls__FR7ostreamf 
   ___ls__FR7ostreami 
   ___8ofstream 
   ___8ifstream 
   _cerr 
   ___ls__FR7ostreamPCc 
   __$_8ofstream 
   ___8ofstreamPCcii 
   __$_8ifstream 
>>
It seems like I forgot to put the libs - do I have to put the libs
and which for what.
About ld , really I cannot understand everything.


Any answers will be rearded witha Xmas card to :
kilitzir@csd.uch.gr
kilitzir@csi.forth.gr
Technical Details
Message-ID: <kilitzir.722530090@news.forth.gr>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.forth.gr!news.forth.gr!kilitzir

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.forth.gr!news.forth.gr!kilitzir
From: kilitzir@antigone.csi.forth.gr (Xristos Kilitzirakis)
Newsgroups: gnu.g++.help
Subject: g++ novice questions
Date: 23 Nov 1992 16:50:57 +0200
Organization: Institute of Computer Science, FORTH Hellas
Lines: 43
Message-ID: <kilitzir.722530090@news.forth.gr>
NNTP-Posting-Host: antigone.csi.forth.gr