🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.g++.lib.bug
2 messages
2 total messages Started by Jack Greenbaum Wed, 18 Nov 1992 01:19
linking trouble
#353
Author: Jack Greenbaum
Date: Wed, 18 Nov 1992 01:19
25 lines
1498 bytes
I've got a pile of code that was developed under SunOs using cfront
2.something.  When I compile with gcc-2.3.1 and lib-g++-2.2 on a
DecStation 5000 runing Ultrix 4.2 I get the following error when
linking:

ld:
Undefined:
__ls__FR7ostreamP6Object
__ls__FR7ostreamR6Object
exit__Fi

At least I recognize exit, but why is it undefined? __ls doesn't ring
any bells, but I do recognize the data type Object for one of the
arguments. How can I track this down? This code links with a C++
library we wrote.  Another application that uses the same library gets
the same errors.  Could DEC's ld be having trouble with the mangled
names?

Thanks in advance for any suggestions about how to track this down.

-------------------------------------------------------------------------------
Jack Greenbaum     | UC Santa Barbara
jackg@ece.ucsb.edu | Department of Electrical and Computer Engineering, Box 253
(805) 893-4461     | Santa Barbara, Ca. 93106, USA
-------------------------------------------------------------------------------
Re: linking trouble
#355
Author: bothner
Date: Tue, 17 Nov 1992 13:28
16 lines
872 bytes
> I've got a pile of code that was developed under SunOs using cfront
> 2.something.

Did you re-compile all of your C++ code;
code from different C++ compilers is normally not binary compatible.

> At least I recognize exit, but why is it undefined?

Because you didn't declare exit() as a C function (using 'extern "C").

> __ls doesn't ring any bells

ls == left shift - i.e. operator<<.

	--Per Bothner
Cygnus Support     bothner@cygnus.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads