Re: Re: how to get regex to link in windows? (John Maddock)
John, I took out the hardcoded library and let the code figure it out by itself. I also removed the BOOST_REGEX_NO_W32 as you suggested but then I get compiler errors in the windows code (This was the reason I put BOOST_REGEX_NO_W32) Here are the errors; Linking to lib file: libboost_filesystem-vc71-mt-gd-1_32.lib Linking to lib file: libboost_regex-vc71-mt-gd-1_32.lib c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h(8390) : error C2143: syntax error : missing ')' before '->' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h(8390) : error C2143: syntax error : missing ';' before '->' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h(8390) : error C2165: 'left-side modifier' : cannot modify pointers to data c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h(8390) : error C2059: syntax error : ')' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(2382) : error C2143: syntax error : missing ')' before '->' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(2382) : error C2143: syntax error : missing ';' before '->' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(2382) : error C2165: 'left-side modifier' : cannot modify pointers to data c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinBase.h(2382) : error C2059: syntax error : ')' Programming Tutorial: In Python: To do this, do this In Perl: To do this, do this or this or this or this... In C: To do this, do this, but be careful In C++: To do this, do this, but don't do this, be careful of this, watch out for this, and whatever you do, don't do this __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
I took out the hardcoded library and let the code figure it out by itself. I also removed the BOOST_REGEX_NO_W32 as you suggested but then I get compiler errors in the windows code (This was the reason I put BOOST_REGEX_NO_W32)
Here are the errors; Linking to lib file: libboost_filesystem-vc71-mt-gd-1_32.lib Linking to lib file: libboost_regex-vc71-mt-gd-1_32.lib c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h(8390) : error C2143: syntax error : missing ')' before '->' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h(8390) : error
Well if windows.h doesn't compile I don't know what the problem is, you could try altering the order of your #includes I suppose, but whatever the issue is, it's beyond our control. If you still want to disable Win32-specific support, just define BOOST_REGEX_NO_W32 in boost/regex/user.hpp and rebuild the library as well as your code. John.
participants (2)
-
Alexis H. Rivera-Rios
-
John Maddock