当前位置:网站首页>严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDe
严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDe
2022-06-28 19:28:00 【妙为】
系列文章目录
前言
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDebug”(main.obj 中) SceneTest E:\osg\work\ThermalCharacteristics_20220628\SceneTest\SceneTempCal.lib(MeshAnalyzer.obj) 1 
一、错误原因
VS2019 开发,之前一直用的debug模式,代码编译正常
最近改为Release模式,一编译就出现这个错误:
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 LNK1257 代码生成失败 SceneTest E:\osg\work\ThermalCharacteristics_20220628\SceneTest\LINK 1
严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDe
网上搜了一下,说是:
“我这几天也遇到了这个问题,用别人提供的lib,在vs2019下 debug模式可以运行,但release模式下就不行,出现了和你一样的错误。开始我还以为是lib不兼容,最后发现这个lib在LTCG下不能被解析,做如下改正即可:
1
Release模式下->配置属性->高级->全程序优化->使用链接时间代码生成 将这里的默认项 “使用链接时间代码生成”改为“无全程序优化”。 接下来就可以运行了。
二、解决问题

边栏推荐
- Try except add auxiliary new column
- Bayesian inference problem, MCMC and variational inference
- 令人惊艳的NanoPC-T4(RK3399)作为工作站的初始配置和相关应用
- 智能计算系统3 Plugin 集成开发的demo
- Variable autoencoders (vaes)
- Redis 如何实现库存扣减操作?如何防止商品被超卖?
- Chunfeng power and Huawei work together to build a smart Park benchmark, and the future factory innovation will reach a new level
- How to remove dataframe field column names
- Paper notes: universal value function approvers
- H5 sunflower operation
猜你喜欢

为什么C语言用使用其他文件的结构体变量时,声明结构体别名还不行,必须使用本名?(使用别名时不能加struct)

Paper notes: universal value function approvers

The amazing nanopc-t4 (rk3399) is used as the initial configuration and related applications of the workstation

Installation and configuration of CGAL in PCL environment 5.4.1

Variational graph auto-encoders (VGAE)

Autumn recruitment experience sharing | how to prepare for bank interview

try except 添加辅助新列

Digital collection, ten thousand words long text, most of the questions you want to know have been clearly explained, which must be seen by practitioners

大火的虚拟人在哪些产业开始发力?

rancher增加/删除node节点
随机推荐
R语言GLM广义线性模型:逻辑回归、泊松回归拟合小鼠临床试验数据(剂量和反应)示例和自测题
Paper notes: universal value function approvers
C language - function knowledge points
令人惊艳的NanoPC-T4(RK3399)作为工作站的初始配置和相关应用
Win11如何给系统盘瘦身?Win11系统盘瘦身方法
带你手把手实现grafana双轴图
Live app system source code, automatically playing when encountering video dynamically
如何通过W3school学习JS/如何使用W3school的JS参考手册
h5向日葵作业
论文3 VScode&texlive&SumatraPDF打造完美书写论文工具
列表加入计时器(正计时、倒计时)
多测师肖sirapp中riginal error: Could not extract PIDs from ps output. PIDS: [], Procs: [“bad pid
How to learn JS through w3school / how to use the JS reference manual of w3school
直播app系统源码,动态遇到视频时开始自动播放
echart:横向柱状图的类目文字位置调整
Are there any regular and safe foreign exchange dealers in China?
Figure introduction to neural networks (GNN, GCN)
MDM数据分析功能说明
判断字符串是否为空
jvm内存结构