Skip to content

Instantly share code, notes, and snippets.

@Marenz
Created July 5, 2011 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Marenz/1064630 to your computer and use it in GitHub Desktop.
Save Marenz/1064630 to your computer and use it in GitHub Desktop.
boost linker errors
Errors:
libmaidsafe_common-d-0_09_02.a(file_chunk_store.cc.o): In function `boost::filesystem3::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&, boost::filesystem3::copy_option)':
/usr/include/boost/filesystem/v3/operations.hpp:300: undefined reference to `boost::filesystem3::detail::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&, boost::filesystem3::copy_option, boost::system::error_code*)'
libmaidsafe_common-d-0_09_02.a(file_chunk_store.cc.o): In function `boost::filesystem3::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&, boost::filesystem3::copy_option, boost::system::error_code&)':
/usr/include/boost/filesystem/v3/operations.hpp:307: undefined reference to `boost::filesystem3::detail::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&, boost::filesystem3::copy_option, boost::system::error_code*)'
Available Symbol:
nm /usr/lib/libboost_filesystem.a --demangle | grep boost::filesystem3::detail::copy_file
nm: windows_file_codecvt.o: no symbols
00000630 T boost::filesystem3::detail::copy_file(boost::filesystem3::path const&, boost::filesystem3::path const&, boost::filesystem3::copy_option::enum_type, boost::system::error_code*)
Difference:
Wanted: boost::filesystem3::copy_option
vs : boost::filesystem3::copy_option::enum_type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment