Greetings,
Though I'm an "old hand" at C++, I'm a complete newbie when it comes
to Boost. The piece that really caught my eye, in light of my current
project, is the directory iterator. To date, however, I haven't had
any success getting it to compile and function under Win32 with MSVC6,
so I thought I would post here. I first have a couple of general
questions about using Boost, and then one specific question about the
problems with my project at hand.
(1) Is there a "right" way to include Boost stuff with VC6? Adding the
Boost base directory to my list of include directories seems to work
for the official stuff, but it clearly doesn't work for the filesystem
stuff because Directory.h is not in the base\boost directory. I can
put it there myself, of course, but I'm wondering if there is some
intended way to use the beta libraries before they become a part of
the whole.
(2) Is there a "right" way to link Boost stuff with VC6? The
filesystem stuff, like the regex stuff and some other pieces, requires
actual compilation and cannot simply be included as header files. I
have already built all the official libraries using the bjam utility,
but I cannot help noticing they're each stored in hideously long paths
beneath the boost base directory. Is there a "right" directory under
the Boost hierarchy into which the resulting libs should be copied for
ease of inclusion in VC6? Or should I copy them into my project
directories as needed? Or should I simply come up with my own system?
To get to the more specific question, let me explain how I've
addressed (1) and (2) for the time being. Regarding (1), I've copied
Directory.h and Boost.h into the base\boost directory so that they may
be included without changing the existing source code. That was simple
enough. Regarding (2), I've decided to add Directory.cpp to my project
and compile it as a module, rather than try to get the linking to work
externally. Having said that, consider the following code:
#include