Do you have any particular compilation error?
Boost is a complex library, that uses advanced features of C++ (including
template advanced techniques, like template metaprogramming).
VC6 compiler is not very good to handle advanced C++ template techniques, so
I would not be surprised if some Boost template classes failed in
compilation with VC6...
Note that Visual C++ 2008 Express Edition is a free download, and the C++
compiler that comes with it is better than VC6 C++ compiler.
Giovanni
Boost makes heavy use of templates (too much for my taste), so
in VS6 fails left and right.
It is probably impossible to make it work.
(ok, some sub-projects in boost don't (ab)use the whole
templates thing too much, so you might be able to fix them)
--
Mihai Nita [Microsoft MVP, Visual C++]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
> Boost makes heavy use of templates (too much for my taste)
Too much for my taste, too :-)
> , so
> in VS6 fails left and right.
> It is probably impossible to make it work.
> (ok, some sub-projects in boost don't (ab)use the whole
> templates thing too much, so you might be able to fix them)
However, it seems that Boost.Regex works fine with VC6:
From Boost.Regex documentation home page:
Boost.Regex
http://www.boost.org/doc/libs/1_36_0/libs/regex/doc/html/index.html
to paragraph:
Building and installing the library
http://www.boost.org/doc/libs/1_36_0/libs/regex/doc/html/boost_regex/install.html
there is a subsection for VC6 (and 7-8):
Microsoft Visual C++ 6, 7, 7.1 and 8
http://www.boost.org/doc/libs/1_36_0/libs/regex/doc/html/boost_regex/install.html#boost_regex.install.microsoft_visual_c___6__7__7_1_and_8
BTW: I noted that this question was already answered in vc.language... I
would suggest to the OP to cross post, but not multipost.
Giovanni
For example, there is MSDN documentation that talks about "long pointers" and uses
"PASCAL", even though these concepts have been irrelevant for 20 years in the Win32 area.
So, is it possible at the time the documentation was written that VS6 *was* supported, but
as the code has evolved the documentation has failed to evolve with it?
It *might* be true that it is supposed to compile in VS6. But any question that starts
with "I have a template class" and ends in "can I use it in VS6?" usually generates the
reply "It's time to move on to a new version..."
joe
Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm