2011-11-10 43 views
0

我嘗試編譯代碼::塊 升壓文件系統tutorial它出現這些錯誤提高文件系統的教程不會編譯

Linking console executable: bin\Debug\Boost fs tut1.exe 
obj\Debug\main.o: In function `_static_initialization_and_destruction_0': 
D:/Documents/Coding/Libs/boost/boost/system/error_code.hpp:214: undefined reference to `boost::system::generic_category()' 
D:/Documents/Coding/Libs/boost/boost/system/error_code.hpp:215: undefined reference to `boost::system::generic_category()' 
D:/Documents/Coding/Libs/boost/boost/system/error_code.hpp:216: undefined reference to `boost::system::system_category()' 
obj\Debug\main.o: In function `ZN5boost11filesystem34path7codecvtEv': 
D:/Documents/Coding/Libs/boost/boost/filesystem/v3/path.hpp:388: undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()' 
obj\Debug\main.o: In function `convert': 
D:/Documents/Coding/Libs/boost/boost/filesystem/v3/path_traits.hpp:113: undefined reference to `boost::filesystem3::path_traits::convert(char const*, char const*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::codecvt<wchar_t, char, int> const&)' 
obj\Debug\main.o: In function `file_size': 
D:/Documents/Coding/Libs/boost/boost/filesystem/v3/operations.hpp:366: undefined reference to `boost::filesystem3::detail::file_size(boost::filesystem3::path const&, boost::system::error_code*)' 
collect2: ld returned 1 exit status 
Process terminated with status 1 (0 minutes, 0 seconds) 
6 errors, 0 warnings 

我跑它與代碼::塊的Windows 7版本10.5,G ++版本4.4.1和升級版本1.47

回答