|
Boost Users : |
From: Noud de Beijer (nouddebeijer_at_[hidden])
Date: 2008-02-08 05:49:05
Hi all,
Iâm using boost version 1.34.1 (downloaded from http://www.boost-consulting.com/)
with Visual C++ 2005 Professional. Everything worked fine (even boost::filesystem) until I started using boost::filesystem::directory_iterator.
Iâm trying to compile the example below and get a unresolved
symbol:
"unsigned int boost::filesystem::detail::not_found_error".
*) Of course, Iâm linking against the boost filesystem library (if I donât I get even more unresolved symbols).
*) I do define BOOST_ALL_NO_LIB but if I donât I still get the unresolved symbol.
*) Under Linux the same example compiles, links and runs fine!
*) I checked and the symbol exists in the library.
*) Iâm using the correct runtime
*) If I comment out the boost::filesystem::directory_iterator line (so only boost::filesystem::exists()) then the example compiles, links, and runs fine!
Can anybody point me in the right direction? Is this a problem with my Visual Studio setup? Or is this a problem in the boost consulting stuff?
Regards,
Noud
<code>
#include "boost/filesystem.hpp"
#include <string>
int main()
{
std::string myDirString="C:\\";
boost::filesystem::exists(myDirString);
boost::filesystem::directory_iterator myIter(myDirString);
return 0;
}
</code
___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/
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