jebsector
August 23rd, 2011, 02:29 PM
I get the following errors when building a project that makes use of boost::filesystem, regardless of whether I'm pointing to boost v. 1.42 or boost v. 1.46..
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:208: undefined reference to `boost::system::get_system_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:215: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:216: undefined reference to `boost::system::get_system_category()'
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `error_code':
/usr/include/boost/system/error_code.hpp:315: undefined reference to `boost::system::get_system_category()'
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `boost::system::errc::make_error_code(boost::syste m::errc::errc_t)':
/usr/include/boost/system/error_code.hpp:476: undefined reference to `boost::system::get_generic_category()'
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, bool>::type boost::filesystem::exists<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)':
/usr/include/boost/filesystem/operations.hpp:293: undefined reference to `boost::filesystem::detail::status_api(std::basic_ string<char, std::char_traits<char>, std::allocator<char> > const&, boost::system::error_code&)'
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, bool>::type boost::filesystem::is_directory<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)':
/usr/include/boost/filesystem/operations.hpp:303: undefined reference to `boost::filesystem::detail::status_api(std::basic_ string<char, std::char_traits<char>, std::allocator<char> > const&, boost::system::error_code&)'
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, bool>::type boost::filesystem::create_directory<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)':
/usr/include/boost/filesystem/operations.hpp:423: undefined reference to `boost::filesystem::detail::create_directory_api(s td::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/GNU-Linux-x86/datacarbon] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
Do you guys know what this is about? Other things seem to work fine, like regex, shared_ptr, etc..
Thanks,
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:208: undefined reference to `boost::system::get_system_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:215: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:216: undefined reference to `boost::system::get_system_category()'
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `error_code':
/usr/include/boost/system/error_code.hpp:315: undefined reference to `boost::system::get_system_category()'
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `boost::system::errc::make_error_code(boost::syste m::errc::errc_t)':
/usr/include/boost/system/error_code.hpp:476: undefined reference to `boost::system::get_generic_category()'
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, bool>::type boost::filesystem::exists<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)':
/usr/include/boost/filesystem/operations.hpp:293: undefined reference to `boost::filesystem::detail::status_api(std::basic_ string<char, std::char_traits<char>, std::allocator<char> > const&, boost::system::error_code&)'
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, bool>::type boost::filesystem::is_directory<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)':
/usr/include/boost/filesystem/operations.hpp:303: undefined reference to `boost::filesystem::detail::status_api(std::basic_ string<char, std::char_traits<char>, std::allocator<char> > const&, boost::system::error_code&)'
build/Debug/GNU-Linux-x86/idx/idx_utility.o: In function `boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, bool>::type boost::filesystem::create_directory<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)':
/usr/include/boost/filesystem/operations.hpp:423: undefined reference to `boost::filesystem::detail::create_directory_api(s td::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/GNU-Linux-x86/datacarbon] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
Do you guys know what this is about? Other things seem to work fine, like regex, shared_ptr, etc..
Thanks,