Boost logo

Boost Users :

From: Patrick Loney (Patrick.Loney_at_[hidden])
Date: 2008-02-08 11:08:25


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_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Noud de Beijer
Sent: 08 February 2008 10:49
To: boost-users_at_[hidden]
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;
}

</code

      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For
Good http://uk.promotions.yahoo.com/forgood/
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
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
______________________________________________________________________


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