On Monday, 13. September 2010 22:54:43 Bibbo, Joe wrote:
> have downloaded the boost v1.44 and would like to see if our usage of the
> FileSystem library is compatible with Version 3 of library. I am having
> trouble building the library.
>
> Using the command
>
> bjam toolset=msvc-9.0 variant=debug threading=multi link=static
> define=_BIND_TO_CURRENT_VCLIBS_VERSION define=BOOST_FILESYSTEM_VERSION=3
> --with-filesystem
Try quotes for 'define=BOOST_FILESYSTEM_VERSION=3'.
This should read define="BOOST_FILESYSTEM_VERSION=3" else bjam will happily
strip the second "=" from the command line.
Try to run with -n to see the actual command line or look at the .rsp files
created.
Yours,
Jürgen
--
* Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für
* voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH
* fax : ++49 511 262926 99 ! Lister Straße 15
* juergen...@ivembh.de ! www.ivembh.de
*
* Geschäftsführer: ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke !
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
It is my understanding that you don't need to specify
BOOST_FILESYSTEM_VERSION when building Boost 1.44. This macro is to be
placed in the preprocessor settings of a program that uses Boost 1.44.
I upgraded to Boost 1.44 yesterday and was confused with this. I read
the following text from the source file
boost_1_44_0\libs\filesystem\v3\src\path.cpp which cleared up my
confusion:
// During the transition to V3, libraries are compiled with both V2
and V3 sources.
// On old compilers that don't support V3 anyhow, we just skip
everything so the compile
// will succeed and the library can be built.
Regards,
Pete
#define BOOST_FILESYSTEM_VERSION 3 // for boost 1.44, only
#define BOOST_FILESYSTEM_NO_DEPRECATED
#include <boost/filesystem.hpp>
Roland,
Just introduced BOOST_FILESYSTEM_NO_DEPRECATED and that's picked up a
few more functions I'm using that that are now deprecated.
Thanks,
Pete