This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How do I add missing stdc functions to libstdc++-v3?
On 2012-03-15, at 4:40 AM, Jonathan Wakely wrote:
> On 15 March 2012 03:09, Vaugha Brewchuk wrote:
>>
>>
>> Following your suggestions and looking at the above output, it is obvious that there is no -lsupc++ command passed-on to collect2. I manually added -lsupc++ to the above command and both of the missing symbols have been imported by the linker! I am now one step closer to getting abi_check linked - thank you!
>>
>> Now the question is why does g++ not try to link with libsupc++.a? I will dig through the configuration, but as always any pointers would be very much appreciated.
>
> I think usually libstdc++ would automatically link to libsupc++, but
> maybe NeXT needs it to be done explicitly.
I added my two missing objects, strdup() and strxfrm(), to libsupc++ and tried linking again. Unfortunately the result looks like I'm "sinking" even deeper and way beyond my skill level:
/bin/ld: Undefined symbols:
__GLOBAL__D__Z16check_compatibleRK11symbol_infoS1_b
__GLOBAL__D__ZN9__gnu_cxx4ropeIcSaIcEE10_S_min_lenE
__GLOBAL__D__ZNKSt9basic_iosIcSt11char_traitsIcEE7rdstateEv
__GLOBAL__I__Z16check_compatibleRK11symbol_infoS1_b
__GLOBAL__I__ZN9__gnu_cxx4ropeIcSaIcEE10_S_min_lenE
__GLOBAL__I__ZNKSt9basic_iosIcSt11char_traitsIcEE7rdstateEv
__GLOBAL__I__ZNSt10moneypunctIcLb0EEC2Em
__GLOBAL__I__ZNSt5ctypeIcE13classic_tableEv
__GLOBAL__I__ZNSt7codecvtIcc9mbstate_tE2idE
___main
I am almost ready to throw in the towel. Thank you.