前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >专栏 >error “Incompatible build options“

error “Incompatible build options“

作者头像
用户3519280
发布2023-07-08 14:46:38
发布2023-07-08 14:46:38
49000
代码可运行
举报
文章被收录于专栏:c++ 学习分享c++ 学习分享
运行总次数:0
代码可运行

问题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++”文件夹。

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

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

代码语言:javascript
代码运行次数:0
运行
复制
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 个无法解析的外部命令

附加依赖

代码语言:javascript
代码运行次数:0
运行
复制
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

忽略库

代码语言:javascript
代码运行次数:0
运行
复制
msvcrt.lib
msvcprt.lib
LIBCMT.lib
代码语言:javascript
代码运行次数:0
运行
复制
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) 中被引用
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2023-06-15,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 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”
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档