Unresolved symbol in boost::filesystem lib with MS VC++ 2005 Pro
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; } http://uk.promotions.yahoo.com/forgood/
The code sample just compiled on my system (VC 2005 pro) no problem so it is your set up, sorry but don't have the expertise to go further than that... -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Noud de Beijer Sent: 08 February 2008 10:49 To: boost-users@lists.boost.org Subject: [Boost-users] Unresolved symbol in boost::filesystem lib with MSVC++ 2005 Pro 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; } http://uk.promotions.yahoo.com/forgood/ _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ****************************************************************************** "This message and any attachments are solely for the intended recipient and may contain confidential and privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you." Interactive Transaction Solutions Ltd (2473364 England) Registered Office: Systems House, Station Approach Emsworth PO10 7PW ********************************************************************** Ce message �lectronique contient des informations confidentielles � l'usage unique des destinataires indiqu�s, personnes physiques ou morales. Si vous n'�tes pas le destinataire voulu, toute divulgation, copie, ou diffusion ou toute autre utilisation de ces informations, est interdite. Si vous avez re�u ce message �lectronique par erreur, nous vous remercions d'en avertir son exp�diteur imm�diatement par email et de d�truire ce message ainsi que les �l�ments attach�s. Interactive transaction Solutions SAS- France (RCS Pontoise : 489 397 877) Si�ge social : Parc Saint Christophe, 10, Avenue de l�Entreprise 95865 Cergy-Pontoise Cedex ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
participants (2)
-
Noud de Beijer
-
Patrick Loney