[Boost.Filesystem] problem to link an executable to boost_filesys tem static library on Windows XP

Hello, I try to build an console executable that uses boost_fileystem library. I have got the file boost_filesystem-vc71-mt-1_33.lib. My IDE is Visual C++ 7.1. I set the preprocessor definition _MT. At build step, I have this error: "could not find boost_filesystem-vc71-mt-s-1_33.lib". I had a look to boost/config/auto_link.hpp to see what "#define" I forgot but I do not understand why it chooses "#define BOOST_LIB_RT_OPT -s". hat preprocessor macro should I define to make it choose "#define BOOST_LIB_RT_OPT" (i.e. empty) ? Is there a blocking problem with Visual C++ 7.1 on Windows XP ? Thank you. Johan GUIHENEUF

Johan.GUIHENEUF@external.thalesgroup.com wrote:
Hello,
I try to build an console executable that uses boost_fileystem library. I have got the file boost_filesystem-vc71-mt-1_33.lib. My IDE is Visual C++ 7.1. I set the preprocessor definition _MT. At build step, I have this error: "could not find boost_filesystem-vc71-mt-s-1_33.lib". I had a look to boost/config/auto_link.hpp to see what "#define" I forgot but I do not understand why it chooses "#define BOOST_LIB_RT_OPT -s".
hat preprocessor macro should I define to make it choose "#define BOOST_LIB_RT_OPT" (i.e. empty) ? Is there a blocking problem with Visual C++ 7.1 on Windows XP ?
Hi Johan, If you have verified that the library name generated by the auto link (boost_filesystem-vc71-mt-s-1_33.lib) matches what was installed by the boost build, then it looks like you didn't define the path to the library for the linker. This should be settable via the linker preferences, but I use VS 2005, so don't know how you would do it. - Rush
participants (2)
-
Johan.GUIHENEUF@external.thalesgroup.com
-
Rush Manbert