? ,,

新锐科创官网-专业室内外高精度人员定位系统厂家及服务商

聯系我們

給我們留言

聯系我們

地址:福建省晉江市青陽街道洪山路國際工業設計園納金網

郵箱:info@narkii.com

電話:0595-82682267

(周一到周五, 周六周日休息)

當前位置:主頁 > 3D教程 > 圖文教程

UE4 boost lib連接錯誤的解決方法

來源: 52vr | 責任編輯:傳說的落葉 | 發布時間: 2019-06-11 08:27 | 瀏覽量:

[UE4]boost lib連接錯誤:LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL'

 

UE4工程的debug模式鏈接boost的時候出現錯誤:

UE4  boost error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in 

 

以下是UE4源碼的注釋,意思是說UE4編譯器在編譯debug版本的時候仍然會鏈接release版本的第三方庫,因為UE4的編譯器不支持在調試debug版本的第三方庫。

 

// By default we use the Release C++ Runtime (CRT), even when compiling Debug builds.  This is because the Debug C++

// Runtime isn't very useful when debugging Unreal Engine projects, and linking against the Debug CRT libraries forces

// our third party library dependencies to also be compiled using the Debug CRT (and often perform more slowly.)  Often

// it can be inconvenient to require a separate copy of the debug versions of third party static libraries simply

// so that you can debug your program's code.

bDebugBuildsActuallyUseDebugCRT = false;

內容轉自:https://forums.unrealengine.com/showthread.php?63340-Building-engine-with-Debug-Runtime-library

 

解決辦法:

最簡單的方法就是在構建debug版本時候也去鏈接release版本的第三方庫

 

網上另外一張方法:

MyProject.Build.cs文件的構造方法中添加配置:

C#代碼  
  1. BuildConfiguration.bDebugBuildsActuallyUseDebugCRT = true;  

 這樣貌似鏈接boost是可以了,但是又出現其他鏈接錯誤:

 error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (__imp_?_Debug_message@std@@YAXPEB_W0I@Z) referenced in function "int __cdecl std::_Atomic_compare_exchange_strong_4(unsigned long volatile *,unsigned long *,unsigned long,enum std::memory_order,enum std::memory_order)" (?_Atomic_compare_exchange_strong_4@std@@YAHPECKPEAKKW4memory_order@1@2@Z)

 

查了一下,論壇上說如果要使用CRT,需要使用源碼編譯的UE4,因為目前版本對VS2015支持還不完善,有時間了再嘗試下。

詳情見:https://answers.unrealengine.com/questions/294191/vs2015-linker-errors.html


相關文章
網友評論

您需要登錄后才可以發帖 登錄 | 立即注冊

關閉

全部評論:0條

推薦
熱門
主站蜘蛛池模板: 男人操女人的网站 | 免费播放巨茎人妖不卡片 | 久久久久亚洲精品 | 久久精品观看 | 成在线人免费视频一区二区三区 | 99热这里只有精品国产免费 | 国产69精品久久久久99 | jj视频污 | 国产精品久久久久久久久人妻 | 色狠狠色噜噜av天堂一区 | 久草视频免费在线观看 | 国产黑色丝袜在线观看下 | 国外av无码精品国产精品 | 成人综合久久精品色婷婷 | 怡春院久久国语视频免费 | 97精品国产97久久久久久 | 国产精品久久毛片蜜月 | 久久夜色精品国产噜噜av | 精品国产乱码久久久久久免费 | 欧美成人精品手机在线 | 无码人妻一区二区三区兔费 | 国产ts系列紫苑视频在线观看 | 亚洲精品视频观看 | 午夜999 | 欧美一级毛片片aa视频 | 精品国内视频 | 999久久 | 久久中文字幕无码中文字幕有码 | 正在播放国产露脸做91 | 韩国午夜一级伦理片 | 免费人成无码大片在线观看 | 黄视频在线观看免费 | 成片免费观看视频大全 | 国产区1 | 激情爱爱视频 | 伦人伦xxxx国语对白 | 中文在线а天堂中文在线新版 | 成人精品第一区二区三区 | 99在线精品免费视频 | 欧美精品午夜久久久伊人 | 亚洲免费视频网站 |