Boost logo

Boost Users :

From: Fuqua, Andrew (ISSAtlanta) (AFuqua_at_[hidden])
Date: 2004-12-22 16:35:34


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<char,class boost::regex_traits<char>,class
std::allocator<char> > & __stdcall boost::reg_expression<char,class
boost::regex_traits<char>,class std::allocator<char> >::operator=(class
boost::reg_expression<char,class boost::regex_traits<char>,class
std::allocator<char> > const &)"
(??4?$reg_expression_at_DV?$regex_traits_at_D@boost@@V?$allocator_at_D@std@@@boos
t@@$$FQAGAAV01_at_ABV01@@Z)

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)?

thanks



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net