🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52453

g++ linking

#52453
From: Michael J. Miller
Date: Thu, 24 Sep 1992 16:44
31 lines
1371 bytes
Hello,

I'm having a problem w/ linking GNU's g++ code.  The system's config. is:

		SUN SPARC2, OS 4.1.2
		GNU gcc 2.2.2
		GNU libg++2.2

and attached below is a simple program and associated error.  Does anyone
have insight into the cause of this?
					Thanks in advanced, Michael
-------------------------------------------------------------------------
/* How come this won't link?  It appears the gcc compiler can't find it's
   own libraries.  How do we help it out here?
   This is what I get out of the linker in response to
	> gcc test.cc

	>ld: Undefined symbol 
	>   _cout 
	>   ___ls__FR7ostreamPCc 
	>collect: /usr/bin/ld returned 2 exit status

*/ 

#include <iostream.h>

int main() {

	cout << "hello out there\n";

}
Technical Details
Message-ID: <9209241644.AA03885@surtsey.aero.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!spool.mu.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!surtsey.aero.ORG!mike

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e48446f71129f4fe,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-09-24 04:40:02 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!spool.mu.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!surtsey.aero.ORG!mike
From: mike@surtsey.aero.ORG (Michael J. Miller)
Subject: g++ linking
Message-ID: <9209241644.AA03885@surtsey.aero.org>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 24 Sep 1992 16:44:02 GMT
Lines: 31