/clr causes __fastcall to become __stdcall --> unresolved externals for regex
I'm getting a handful of the following errors and warnings while trying
to build with boost regex in MS Visual C++ .NET with the /clr option
(managed extensions).
boost_1_32_0\boost\regex\v4\match_results.hpp(189): warning C4561:
'__fastcall' incompatible with the '/clr' option: converting to
'__stdcall'
error LNK2001: unresolved external symbol "public: class
boost::reg_expression
I'm getting a handful of the following errors and warnings while trying to build with boost regex in MS Visual C++ .NET with the /clr option (managed extensions).
The debug build works fine because config.hpp defines BOOST_REGEX_CALL to _cdecl. It's the release configuration that has the trouble with __fastcall being changed to __stdcall.
How do I get around this (without getting rid of /clr or using a debug build)?
You'll have to modify the definition of BOOST_REGEX_CALL in boost/regex/config.hpp so that it's __cdecl whatever the build options are (this is what the next version will do anyway BTW). John.
participants (2)
-
Fuqua, Andrew (ISSAtlanta)
-
John Maddock