Subject: [Boost-bugs] [Boost C++ Libraries] #1282: filesystem::directory_iterator(path) causes a dynamic link error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-25 04:04:13
#1282: filesystem::directory_iterator(path) causes a dynamic link error
--------------------------------+-------------------------------------------
Reporter: lazalong_at_[hidden] | Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.34.1 | Severity: Regression
Keywords: |
--------------------------------+-------------------------------------------
This simple code will cause a link error when linked to the '''dynamic'''
boost_filesystem-vc80-mt-1_34_1.lib. This problem is also present in 1.34.
Btw linking to the '''static''' version works.
{{{
int _tmain(int argc, _TCHAR* argv[])
{
std::string filename("./tmp.txt");
boost::filesystem::path path(filename);
boost::filesystem::directory_iterator iter(path); // <- the culprit
return 0;
}
}}}
Here is the link error
{{{
1>Boost bug.obj : error LNK2001: unresolved external symbol "unsigned int
boost::filesystem::detail::not_found_error"
(?not_found_error_at_detail@filesystem_at_boost@@3IA)
}}}
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1282>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC