Boost logo

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