Re: g++ error on Solaris/Sparc undefined reference to std::cout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Qi Zuo <bitsunnyday@xxxxxxxxx> writes:

> global? Sorry, I can't get the meaning. Would you explain it further?
> Thanks a million!
>
> 2011/4/19 Jonathan Wakely <jwakely.gcc@xxxxxxxxx>:
>> On 19 April 2011 14:21, Ian Lance Taylor Âwrote:
>>> Qi Zuo <bitsunnyday@xxxxxxxxx> writes:
>>>
>>>> Following your instruction, I checked the libstdc++.so. But I don't
>>>> know whether I've done the right check.
>>>
>>> It looks right. ÂThis is a strange problem.
>>
>> Shouldn't this be global?
>>
>> 000e13e0 b _ZSt4cout

Ah, yes, well spotted.  A global symbol is visible outside the shared
library.  A local symbol is not.  The lower case 'b' indicates a local
symbol.

This looks like a problem with the version script used to build the
shared library.  Do you still have the logs for how libstdc++ was built?

Ian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux