Boost logo

Boost Users :

From: Daniel Andersson (kalven_at_[hidden])
Date: 2007-07-02 07:16:26


Hello,

I have built Boost 1.34 using the msvc toolkit (vc80) and I am now
trying to compile a small test app that uses the filesystem library.
The test app source is attached to this mail. The compile itself works
just fine and linking to the static version of the filesystem lib
works fine as well:

$ cl -nologo -EHsc -MDd fst.cpp libboost_filesystem-vc80-mt-gd.lib
fst.cpp

However, linking to the import library of the shared filesystem
library produces an error:

$ cl -nologo -EHsc -MDd fst.cpp boost_filesystem-vc80-mt-gd.lib
fst.cpp
fst.obj : error LNK2019: unresolved external symbol "unsigned int
boost::filesystem::detail::not_found_error"
(?not_found_error_at_detail@filesystem_at_boost@@3IA) referenced in function
"private: unsigned int __thiscall
boost::filesystem::basic_directory_iterator<class
boost::filesystem::basic_path<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,struct
boost::filesystem::path_traits> >::m_init(class
boost::filesystem::basic_path<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,struct
boost::filesystem::path_traits> const &)"
(?m_init@?$basic_directory_iterator_at_V?$basic_path_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@Upath_traits_at_filesystem@boost@@@filesystem_at_boost@@@filesystem_at_boost@@AAEIABV?$basic_path_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@Upath_traits_at_filesystem@boost@@@23@@Z)
fst.exe : fatal error LNK1120: 1 unresolved externals

Is this a setup issue or a problem with filesystem?

Thanks,
Daniel Andersson




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net