Hi all,
Mình có sử dụng thư viện boost trong dự án. Chạy console thì ok. Nhưng khi mình tạo windowns Form application và sử dụng một số header bên console thì xuấ hiện lỗi như sau:
Code:
lib\boost/regex/v4/regex_traits_defaults.hpp(271) : error C3641: 'boost::re_detail::global_lower' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
\lib\boost/regex/v4/regex_traits_defaults.hpp(272) : error C3641: 'boost::re_detail::global_upper' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
\lib\boost/regex/v4/regex_traits_defaults.hpp(274) : error C3641: 'boost::re_detail::global_lower' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
\lib\boost/regex/v4/regex_traits_defaults.hpp(275) : error C3641: 'boost::re_detail::global_upper' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
\lib\boost/regex/v4/regex_traits_defaults.hpp(278) : error C3641: 'boost::re_detail::global_lower' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
\boost/regex/v4/regex_traits_defaults.hpp(279) : error C3641: 'boost::re_detail::global_upper' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
\boost/regex/v4/regex_raw_buffer.hpp(128) : error C3641: 'boost::re_detail::raw_storage::extend' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
\lib\boost/regex/v4/regex_raw_buffer.hpp(139) : error C3641: 'boost::re_detail::raw_storage::size' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
\lib\boost/regex/v4/regex_raw_buffer.hpp(144) : error C3641: 'boost::re_detail::raw_storage::capacity' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
lib\boost/regex/v4/regex_raw_buffer.hpp(149) : error C3641: 'boost::re_detail::raw_storage::data' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
lib\boost/regex/v4/regex_raw_buffer.hpp(154) : error C3641: 'boost::re_detail::raw_storage::index' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
\lib\boost/regex/v4/regex_raw_buffer.hpp(159) : error C3641: 'boost::re_detail::raw_storage::clear' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
\lib\boost/regex/v4/regex_raw_buffer.hpp(164) : error C3641: 'boost::re_detail::raw_storage::align' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe
Mong mọi người giúp đỡ
Thanks!