Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > 10.1 tools introduce linker errors

10.1 tools introduce linker errors
Thread Tools
Forum Regular
Join Date: Mar 2001
Location: canada
Status: Offline
Reply With Quote
Oct 12, 2001, 02:49 PM
 
I have code that compiled cleanly under 10.0.4, but now that I've upgraded to 10.1 I get the following warning when I try to make the program:

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
/usr/bin/ld: Undefined symbols:
___ls__7ostreamPCc
___ls__7ostreami
_cout
___ls__7ostreamPFRB0_RB0
_endl__FR7ostream
</font>[/code]

The code seems to compile just fine, but linking doesn't work..
Can anybody enlighten my as to what the deal is here?

Thanks,

p

[ 10-12-2001: Message edited by: parsec ]
     
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Oct 12, 2001, 11:03 PM
 
Looks like you're missing a C++ library somewhere.

Or, it could be related to the two-level namespace issue (just a guess, I haven't really read up on that, but I've seen a lot of messages indicating that might be the problem). See the release notes for PB for more information.

Wade
     
parsec  (op)
Forum Regular
Join Date: Mar 2001
Location: canada
Status: Offline
Reply With Quote
Oct 14, 2001, 02:49 AM
 
ok, I'm an idiot.
occasionally my stupidity is absolutely astounding.
I was using cc instead of c++ to try and compile.
Not directly; I had linked g++ to cc instead of c++ for whatever idiotic reason, and I just kept using the g++ command without giving it any thought.
Everything is better now.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:21 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2