Hi,
I encountered some issues with Boost::serialization with clang on windows, and the workaround I found was to remove the INTERFACE_COMPILE_DEFINITIONS.
The error:
lld-link: error: undefined symbol: __declspec(dllimport) public: void __cdecl boost::archive::archive_exception::`vbase dtor'(void)
The workaround:
# Here we remove the INTERFACE_COMPILE_DEFINITIONS, it was containing "BOOST_SERIALIZATION_NO_LIB;BOOST_SERIALIZATION_DYN_LINK"
set_property(TARGET Boost::serialization PROPERTY INTERFACE_COMPILE_DEFINITIONS)
As a side note, it is odd to me that the INTERFACE_COMPILE_DEFINITIONS is filled with BOOST_SERIALIZATION_NO_LIB;BOOST_SERIALIZATION_DYN_LINK, is that wanted ? I feel like it says "disable automatic linking, but also enable it" ?
Some related discussions and commits:
258f786
#54
#62
Hi,
I encountered some issues with
Boost::serializationwithclangonwindows, and the workaround I found was to remove theINTERFACE_COMPILE_DEFINITIONS.The error:
The workaround:
As a side note, it is odd to me that the
INTERFACE_COMPILE_DEFINITIONSis filled withBOOST_SERIALIZATION_NO_LIB;BOOST_SERIALIZATION_DYN_LINK, is that wanted ? I feel like it says "disable automatic linking, but also enable it" ?Some related discussions and commits:
258f786
#54
#62