Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization and possibly others] Serialization library built with Clang symbol export errors on link
From: Kim (soldoutseashell_at_[hidden])
Date: 2013-09-07 10:46:00


On 7/09/2013 9:12 PM, Kim wrote:
> Hey guys,
>
> I'm trying to link my program to the boost serialization library built
> using clang w/ the mingw STL headers on Windows and I get a lot of
> symbol not found errors. Any help is most appreciated since I really
> want to get this working with Clang. If I need to provide more
> information please let me know.

I just want to update my post with more information.

Here is the complete bjam build log for static linked version:
https://dl.dropboxusercontent.com/u/1735585/buildlogstatic.txt

And dynamic (fails to build because of the export problem)
https://dl.dropboxusercontent.com/u/1735585/buildlogdynamic.txt

Sorry they are dropboxed rather than pastebinned, they were too large.

>
> C:\MinGW\bin>g++ -shared script.o
> libboost_serialization-clang34-mt-1_54.lib -o script.dll
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_iarchiveEEEE12get_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_iarchiveEEEE12is_destroyedEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_iarchiveEEEE18get_const_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_iarchiveEEEE20get_mutable_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_iarchiveEEEE8instanceE:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_oarchiveEEEE12get_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_oarchiveEEEE12is_destroyedEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_oarchiveEEEE18get_const_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_oarchiveEEEE20get_mutable_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_oarchiveEEEE8instanceE:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_19naked_text_iarchiveEEEE12get_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_19naked_text_iarchiveEEEE12is_destroyedEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_19naked_text_iarchiveEEEE18get_const_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_19naked_text_iarchiveEEEE20get_mutable_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_19naked_text_iarchiveEEEE8instanceE:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_13typeid_system27extended_type_info_typeid_0ENS3_12type_compareESaIS6_EEE12get_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_13typeid_system27extended_type_info_typeid_0ENS3_12type_compareESaIS6_EEE12is_destroyedEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_13typeid_system27extended_type_info_typeid_0ENS3_12type_compareESaIS6_EEE18get_const_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_13typeid_system27extended_type_info_typeid_0ENS3_12type_compareESaIS6_EEE20get_mutable_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_13typeid_system27extended_type_info_typeid_0ENS3_12type_compareESaIS6_EEE8instanceE:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_18extended_type_infoENS0_6detail11key_compareESaIS5_EEE12get_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_18extended_type_infoENS0_6detail11key_compareESaIS5_EEE12is_destroyedEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_18extended_type_infoENS0_6detail11key_compareESaIS5_EEE18get_const_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_18extended_type_infoENS0_6detail11key_compareESaIS5_EEE20get_mutable_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_18extended_type_infoENS0_6detail11key_compareESaIS5_EEE8instanceE:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_iarchiveEEEE12get_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_iarchiveEEEE12is_destroyedEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_iarchiveEEEE18get_const_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_iarchiveEEEE20get_mutable_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_iarchiveEEEE8instanceE:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_oarchiveEEEE12get_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_oarchiveEEEE12is_destroyedEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_oarchiveEEEE18get_const_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_oarchiveEEEE20get_mutable_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_13text_oarchiveEEEE8instanceE:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_19naked_text_iarchiveEEEE12get_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_19naked_text_iarchiveEEEE12is_destroyedEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_19naked_text_iarchiveEEEE18get_const_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_19naked_text_iarchiveEEEE20get_mutable_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonINS_7archive6detail12extra_detail3mapINS2_19naked_text_iarchiveEEEE8instanceE:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_13typeid_system27extended_type_info_typeid_0ENS3_12type_compareESaIS6_EEE12get_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_13typeid_system27extended_type_info_typeid_0ENS3_12type_compareESaIS6_EEE12is_destroyedEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_13typeid_system27extended_type_info_typeid_0ENS3_12type_compareESaIS6_EEE18get_const_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_13typeid_system27extended_type_info_typeid_0ENS3_12type_compareESaIS6_EEE20get_mutable_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_13typeid_system27extended_type_info_typeid_0ENS3_12type_compareESaIS6_EEE8instanceE:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_18extended_type_infoENS0_6detail11key_compareESaIS5_EEE12get_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_18extended_type_infoENS0_6detail11key_compareESaIS5_EEE12is_destroyedEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_18extended_type_infoENS0_6detail11key_compareESaIS5_EEE18get_const_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_18extended_type_infoENS0_6detail11key_compareESaIS5_EEE20get_mutable_instanceEv:
> symbol not found
> Cannot export
> __ZN5boost13serialization9singletonISt8multisetIPKNS0_18extended_type_infoENS0_6detail11key_compareESaIS5_EEE8instanceE:
> symbol not found
> collect2.exe: error: ld returned 1 exit status
>
> C:\MinGW\bin>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net