Problem linking to Boost Filesystem Library
I am getting an unresolved external error when auto-linking to the Boost
Filesystem Library
Compiler: Visual Studio 2005
Boost Library Version: 1.36.0
The error:
packagereport.obj : error LNK2001: unresolved external symbol "class
boost::system::error_code boost::filesystem::detail::throws"
(?throws@detail@filesystem@boost@@3Verror_code@system@3@A)
The Boost Libraries were compiled using Visual Studio 2005 as well.
I compiled with BOOST_LIB_DIAGNOSTIC and got the following two lines in the
output:
Linking to lib file: libboost_system-vc80-mt-gd-1_36.lib
Linking to lib file: libboost_filesystem-vc80-mt-gd-1_36.lib
I added /verbose to the linker and got the following:
Processed /DEFAULTLIB:libboost_system-vc80-mt-gd-1_36.lib
Processed /DEFAULTLIB:libboost_filesystem-vc80-mt-gd-1_36.lib
Searching ..\3rdParty\Boost\lib\libboost_system-vc80-mt-gd-1_36.lib:
Found "class boost::system::error_category const & __cdecl
boost::system::get_system_category(void)"
(?get_system_category@system@boost@@YAABVerror_category@12@XZ)
Referenced in packagereport.obj
Loaded
libboost_system-vc80-mt-gd-1_36.lib(boost_system-vc80-mt-gd-1_36.dll)
Found "class boost::system::error_category const & __cdecl
boost::system::get_generic_category(void)"
(?get_generic_category@system@boost@@YAABVerror_category@12@XZ)
Referenced in packagereport.obj
Loaded
libboost_system-vc80-mt-gd-1_36.lib(boost_system-vc80-mt-gd-1_36.dll)
Found __IMPORT_DESCRIPTOR_boost_system-vc80-mt-gd-1_36
Referenced in
libboost_system-vc80-mt-gd-1_36.lib(boost_system-vc80-mt-gd-1_36.dll)
Referenced in
libboost_system-vc80-mt-gd-1_36.lib(boost_system-vc80-mt-gd-1_36.dll)
Loaded
libboost_system-vc80-mt-gd-1_36.lib(boost_system-vc80-mt-gd-1_36.dll)
Found boost_system-vc80-mt-gd-1_36_NULL_THUNK_DATA
Referenced in
libboost_system-vc80-mt-gd-1_36.lib(boost_system-vc80-mt-gd-1_36.dll)
Loaded
libboost_system-vc80-mt-gd-1_36.lib(boost_system-vc80-mt-gd-1_36.dll)
Searching
..\3rdParty\Boost\lib\libboost_filesystem-vc80-mt-gd-1_36.lib:
Found "class boost::filesystem::file_status __cdecl
boost::filesystem::detail::status_api(class std::basic_string
From the dll:
68 43 00011E04 ?throws@detail@filesystem@boost@@3Verror_code@system@3@A
From the lib:
?throws@detail@filesystem@boost@@3Verror_code@system@3@A (class boost::system::error_code boost::filesystem::detail::throws) It looks like the decorated names in the lib and dll match the name that is being searched for by the linker and it looks like the linker found the lib file. Any ideas why this would not be linking? Also, I have tried disabling the auto-linking (using BOOST_ALL_NO_LIB) and linking manually, but I get the same error. Thanks, Doug Beatty ----------------------------------------- This e-mail and any attachments are intended only for the individual or company to which it is addressed and may contain information which is privileged, confidential and prohibited from disclosure or unauthorized use under applicable law. If you are not the intended recipient of this e-mail, you are hereby notified that any use, dissemination, or copying of this e-mail or the information contained in this e-mail is strictly prohibited by the sender. If you have received this transmission in error, please return the material received to the sender and delete all copies from your system.
participants (1)
-
DDBeatty@dstsystems.com