Using boost::regex 1.31.0 on vc6
Hi, I'm trying to use boost::regex 1.31.0 (the v4 source code) on MSVC++6 (sp5), but whenever I compile a project using the new code I get an internal compiler error in perl_matcher_common.hpp and no object is built. I want to use the new v4 code (the older v3 code works, and I'll use that if I have to) but this file is quite important... is there something I can do, or does it not work with VC6? Thanks, Chris
I'm trying to use boost::regex 1.31.0 (the v4 source code) on MSVC++6 (sp5), but whenever I compile a project using the new code I get an internal compiler error in perl_matcher_common.hpp and no object is built.
I want to use the new v4 code (the older v3 code works, and I'll use that if I have to) but this file is quite important... is there something I can do, or does it not work with VC6?
It certainly should, that's a compiler I test with regularly. However there is a known problem with some of the #pragma's when used with VC6, and certain types of precompiled headers - you'll find some guidance here: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=891544&group_id=7586. John.
It certainly should, that's a compiler I test with regularly. However
there
is a known problem with some of the #pragma's when used with VC6, and certain types of precompiled headers - you'll find some guidance here:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=891544&group_id =7586.
John.
Thanks for the link - using one of the suggestions and removing the lines #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable:4127) #endif #ifdef BOOST_MSVC #pragma warning(pop) #endif in the perl_matcher_common.hpp and _recursive.hpp headers fixed the problem. (The recursive header doesn't seem to cause an error in debug builds, so if the common crashes for you, edit the other file too.) Before I came here I tried to find something on SourceForge to no avail. If anyone else has a problem, hopefully they will pick up this message :) Thanks again. Chris
participants (2)
-
Chris Branch
-
John Maddock