error “Incompatible build options“

问题1 CGAL环境,fatal error C1189: #error : "Incompatible build options"
#if defined(__MSVC_RUNTIME_CHECKS) && !defined(_DEBUG)

pragma message(“Using the /RTC option without specifying a debug runtime will lead to linker errors”)

pragma message(“Hint: go to the code generation options and switch to one of the debugging runtimes”)

error “Incompatible build options”

#endif

在 Visual Studio 开发环境中设置此编译器选项

打开项目的“属性页”对话框。

单击“C/C++”文件夹。

单击“代码生成”属性页。

修改下列属性之一或两者都修改:“基本运行时检查”或“较小类型检查”

1>libboost_thread-vc80-mt-1_55.lib(thread.obj) : warning LNK4217: 本地定义的符号 ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator=(char const *)) 在函数 "public: virtual char const * __thiscall boost::system::system_error::what(void)const " (?what@system_error@system@boost@@UBEPBDXZ) 中导入
1>Commands.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(long)" (__imp_??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@J@Z),该符号在函数 "void __cdecl boost::assertion::detail::assertion_failed_msg<char>(char const *,char const *,char const *,char const *,long)" (??$assertion_failed_msg@D@detail@assertion@boost@@YAXPBD000J@Z) 中被引用
1>libCGAL-vc80-mt-4.4-I-900.lib(all_files.obj) : error LNK2019: 无法解析的外部符号 "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXABVexception@std@@@Z),该符号在函数 "void * __cdecl boost::detail::allocate_raw_heap_memory(unsigned int)" (?allocate_raw_heap_memory@detail@boost@@YAPAXI@Z) 中被引用
1>libCGAL-vc80-mt-4.4-I-900.lib(all_files.obj) : error LNK2019: 无法解析的外部符号 __HUGE,该符号在函数 "void __cdecl CGAL::internal::`dynamic initializer for 'infinity''(void)" (??__Einfinity@internal@CGAL@@YAXXZ) 中被引用
1>libboost_system-vc80-mt-1_55.lib(error_code.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static unsigned int const std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::npos" (__imp_?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB),该符号在函数 "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall boost::system::`anonymous namespace'::system_error_category::message(int)const " (?message@system_error_category@?A0xcee97830@system@boost@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) 中被引用
1>libboost_thread-vc80-mt-1_55.lib(thread.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator+=(char const *)" (__imp_??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z),该符号在函数 "public: virtual char const * __thiscall boost::system::system_error::what(void)const " (?what@system_error@system@boost@@UBEPBDXZ) 中被引用
1>D:\develop\Debug\multiVersionArxDbg.Debug.v80.Win32.arx : fatal error LNK1120: 5 个无法解析的外部命令

附加依赖

libCGAL-vc80-mt-4.4-I-900.lib
libCGAL_Core-vc80-mt-4.4-I-900.lib
libboost_system-vc80-mt-1_55.lib
libboost_thread-vc80-mt-1_55.lib
libboost_date_time-vc80-mt-1_55.lib
libcmtd.lib
msvcrt.lib
msvcprt.lib

忽略库

msvcrt.lib
msvcprt.lib
LIBCMT.lib
1>libCGAL-vc80-mt-4.4-I-900.lib(all_files.obj) : error LNK2019: 无法解析的外部符号 "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXABVexception@std@@@Z),该符号在函数 "void * __cdecl boost::detail::allocate_raw_heap_memory(unsigned int)" (?allocate_raw_heap_memory@detail@boost@@YAPAXI@Z) 中被引用
1>libCGAL-vc80-mt-4.4-I-900.lib(all_files.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) void __cdecl boost::detail::set_tss_data(void const *,class boost::shared_ptr<struct boost::detail::tss_cleanup_function>,void *,bool)" (__imp_?set_tss_data@detail@boost@@YAXPBXV?$shared_ptr@Utss_cleanup_function@detail@boost@@@2@PAX_N@Z),该符号在函数 "public: __thiscall boost::thread_specific_ptr<int>::~thread_specific_ptr<int>(void)" (??1?$thread_specific_ptr@H@boost@@QAE@XZ) 中被引用
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lst0426

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值