error “Incompatible build options“

news/2024/10/23 5:32:08/

问题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) 中被引用

http://www.ppmy.cn/news/407469.html

相关文章

播放音乐

HTML除了可以插入图形之外&#xff0c;还可以播放音乐和视频等。用浏览器可以播放的音乐格式有&#xff1a;MIDI音乐、WAV音乐、AU格式。另外在利用网络下载的各种音乐格式中&#xff0c;MP3是压缩率最高&#xff0c;音质最好的文件格式。 点播音乐 将音乐做成一个链接&#xf…

android 音乐播放器

java学习手册&#xff0c;最全java学习资料下载 服务和广播实现音乐播放器 先看示例&#xff1a; MusiceService代码 package mm.shandong.com.testsimplemedia.service;import android.app.Service; import android.content.BroadcastReceiver; import android.content.C…

综合项目_音乐播放器

<!DOCTYPE html> <html><head><meta charset"utf-8"><title>音乐播放器</title><style type"text/css"> keyframes rotate{0%{transform: rotate(0);}50%{transform:rotate(200deg);}100%{transform: rotate(0…

Dlna音乐播放器

最近做DLNA音乐播放的功能&#xff0c;由于相关资料相对较少&#xff0c;官网上的英文文档又比较难理解&#xff0c;导致实现这一功能花费了大量时间。今天把我的Demo分享给大家。 效果图如下&#xff1a; 1&#xff0c;本Demo实现了DMR设备的搜索&#xff0c;注册事件监听&am…

今天刚注册&#xff01; 乐呵呵呵&#xff01;&#xff01;1

音乐播放器(OC)

我添加的是这几首歌曲 1.主界面和歌曲列表都是拖控件的 2.ViewController里的代码 #import "ViewController.h" #import "MusicList_ViewController.h" //导入音频播放器框架 #import <AVFoundation/AVFoundation.h>interface ViewController ()&l…

MusicPlayer音乐播放器Android

MusicPlayer音乐播放器Android 【音频采集】 你可以使用手机进行现场录音&#xff0c;实现步骤如下&#xff1a; 第一步&#xff1a;在功能清单文件AndroidManifest.xml中添加音频刻录权限&#xff1a; <uses-permission android:name"android.permission.RECORD_AUDIO…

乐乐音乐播放器 欢迎页面(二)

从开发的流程来看&#xff0c;引导页面应该是开发者完成相关的app所有的功能后&#xff0c;最后再编写的。所以现在先来写开机欢迎页面。 1. 先设置主页面 为 splash 页面。 <activity android:name"com.happy.ui.SplashActivity" > <intent-f…