Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to get boost regex library working in vc6[eom]

40 views
Skip to first unread message

raj s

unread,
Aug 29, 2008, 11:50:04 AM8/29/08
to
how to get boost regex library working in vc6.

Giovanni Dicanio

unread,
Aug 29, 2008, 12:34:29 PM8/29/08
to

"raj s" <yes...@gmail.com> ha scritto nel messaggio
news:9770ab84-a103-423f...@d1g2000hsg.googlegroups.com...

> how to get boost regex library working in vc6.

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


Mihai N.

unread,
Aug 30, 2008, 3:16:24 AM8/30/08
to
> Boost is a complex library, that uses advanced features of C++ (including
> template advanced techniques, like template metaprogramming).

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

Giovanni Dicanio

unread,
Aug 30, 2008, 4:11:20 AM8/30/08
to

"Mihai N." <nmihai_y...@yahoo.com> ha scritto nel messaggio
news:Xns9B0A2C4...@207.46.248.16...

> 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

Joseph M. Newcomer

unread,
Aug 30, 2008, 10:27:32 AM8/30/08
to
Now, what is the temporal relationship of the documentation and the code?

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

0 new messages