[Boost-bugs] [ boost-Bugs-891544 ] DevStudio 6.0 SP5 precompiledheaders and regex

Bugs item #891544, was opened at 2004-02-05 23:30 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=891544&group_id=7586 Category: regex Group: None Status: Open Resolution: None Priority: 5 Submitted By: gregg conklin (gconklin) Assigned to: John Maddock (johnmaddock) Summary: DevStudio 6.0 SP5 precompiled headers and regex Initial Comment: trying out the new boost_1_31_0 and i'm having problems using the updated regex library as a precompiled header. i was using 1.30.2 and had no troubles, though it seems more like a compiler problem (MSVC++ 6.0 SP5), so i don't know what can be done about it. ...\boost\regex\v4\perl_matcher_common.hpp(660) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1794) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information to recreate in a tiny project, all i did was (within the msvc gui) File|New|Projects select win32 console app. Selected "A simple application" when asked what kind of console app i wanted to create. Opened stdafx.h and added the line: #include <boost\regex.hpp> right after the generated TODO: line Build|Rebuild All I'd be curious if the .Net compiler had the same problem, but I assume it doesn't. I can say that if I pull the regex.hpp out of stdafx.h and put it into each .h or .cpp file that references boost::regex, I get a clean compile. However, I have dozens of tiny projects that would require this change. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=891544&group_id=7586 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs

Initial Comment: trying out the new boost_1_31_0 and i'm having problems using the updated regex library as a precompiled header. ...\boost\regex\v4\perl_matcher_common.hpp(660) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1794) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information I'd be curious if the .Net compiler had the same problem, but I assume it doesn't. I can say that if I pull the regex.hpp out of stdafx.h and put it into each .h or .cpp file that references boost::regex, I get a clean compile. However, I have dozens of tiny projects that would require this change.
I've tried all sorts of things to try and fix this, but I can't see any solution. As you rightly say Visual Studio .NET and .NET 2003 don't have this issue (I've checked). The strange thing is, the pre-compiled header builds OK, it's only when you come to use it that the error occurs. If anyone has any ideas I'd appreciate it. John

vc++6.0, IMO, was a drain (net loss) on human progress. I'm glad it's been upgraded and even _talking_ about it's deficiencies is, IMO, a waste of time. I'm delighted to see that the Spirit folks have given up on it (as should we all, else we just encourage people to keep it "for now"). The above is not intended to be inflammatory at all, it's time is over, let's move on to _real_ compilers that compile _real_ (standard) C++. At Friday 2004-02-06 05:01, you wrote:
Initial Comment: trying out the new boost_1_31_0 and i'm having problems using the updated regex library as a precompiled header. ...\boost\regex\v4\perl_matcher_common.hpp(660) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1794) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information I'd be curious if the .Net compiler had the same problem, but I assume it doesn't. I can say that if I pull the regex.hpp out of stdafx.h and put it into each .h or .cpp file that references boost::regex, I get a clean compile. However, I have dozens of tiny projects that would require this change.
I've tried all sorts of things to try and fix this, but I can't see any solution. As you rightly say Visual Studio .NET and .NET 2003 don't have this issue (I've checked). The strange thing is, the pre-compiled header builds OK, it's only when you come to use it that the error occurs. If anyone has any ideas I'd appreciate it.
John
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English language: "There oughta be a law"

Initial Comment: trying out the new boost_1_31_0 and i'm having problems using the updated regex library as a precompiled header.
Following the instructions in http://support.microsoft.com/default.aspx?scid=kb;en-us;195738 I have a workaround: change your project pre-compiled header settings from "Use precompiled header file" to "Automatic use of precompiled headers". I don't know what effect this has on compile times though - in theory none if you enter "stdafx.h" as the header name in the box provided (I've checked this works in your text case). John.
participants (3)
-
John Maddock
-
SourceForge.net
-
Victor A. Wagner, Jr.