当前位置:网站首页>The severity code indicates that the project file line prohibits the display of status errors. C1047 object or library file ".Lib" is different from other objects (such as "x64\release\main.obj")
The severity code indicates that the project file line prohibits the display of status errors. C1047 object or library file ".Lib" is different from other objects (such as "x64\release\main.obj")
2022-06-28 19:44:00 【Miaowei】
List of articles
List of articles
Preface
severity Code explain project file That's ok Disable status
error C1047 Object or library file “.\lib\SceneTempCal.lib” Yes use with other objects ( Such as “x64\Release\main.obj”) Created by different compiler versions ; Please regenerate all objects and libraries using the same compiler SceneTest E:\osg\work\ThermalCharacteristics_20220628\SceneTest\LINK 1 
One 、 The reason for the error
VS2019 Development , I used it all the time debug Pattern , The code compilation is normal
Recently changed to Release Pattern , This error occurs as soon as you compile :
LINK : fatal error C1047: Object or library file “.lib” Yes use with other objects ( Such as “x64\Release\main.obj”) Created by different compiler versions ; Please regenerate all objects and libraries using the same compiler
I searched the Internet , be supposed to :
“ I also encountered this problem these days , Use what others have provided lib, stay vs2019 Next debug Mode can run , but release Not in mode , The same mistake you made . At first I thought it was lib Are not compatible , Finally, I found this lib stay LTCG Cannot be parsed , Make the following corrections :
Release In mode -> Configuration properties -> senior -> Whole program optimization -> Use link time code generation Put the default here “ Use link time code generation ” Change it to “ No full program optimization ”. Then you can run .

Generally, it is generated in the lower version lib Can be used by high-level compilers , This is the foundation of compatibility , ha-ha !”
therefore Change the attribute , Change it to Without full program optimization , Will report another error , I thought I couldn't go on like this , It must have gone somewhere .
Later, it was upgraded VS2019 Well ,
Recompile after upgrade It also suggests this mistake ,
But this time After no full program optimization is removed from the attribute Recompile and pass .
Don't understand , One lib library How can there be such a situation when compiling ?
Make a note of ,
Reference resources
边栏推荐
- F (x) construct the equation, calculate the partial derivative by gradient descent, determine the partial derivative adjustment by loss function, and deal with nonlinear problems by activation functio
- 视差js特效js轮播图插件
- Are there any regular and safe foreign exchange dealers in China?
- redisTemplate
- 2280.Cupboards
- matlab 受约束的 Delaunay 三角剖分
- mysql全解 Ubuntu/win10
- i人事HR系统上架企业微信ISV,增强企微在服务连锁零售等行业深度应用
- 秒杀系统设计
- h5向日葵作业
猜你喜欢

R language GLM generalized linear model: logistic regression, Poisson regression fitting mouse clinical trial data (dose and response) examples and self-test questions

从设计交付到开发,轻松畅快高效率!

数字经济专家高泽龙:映客更名映宇宙,元宇宙会成为映客下一个增长引擎吗?

Demo of integrated development of intelligent computing system 3 plugin

Installation and configuration of CGAL in PCL environment 5.4.1

Bayesian inference problem, MCMC and variational inference

《数字经济全景白皮书》消费金融数字化篇 重磅发布

Redis 如何实现库存扣减操作?如何防止商品被超卖?

Bayesian Reference problem, mCMC and variational reference

Gaozelong, a digital economy expert: Yingke changed its name to yingcosmos. Will yuancosmos become the next growth engine of Yingke?
随机推荐
Rigid error: could not extract PIDs from PS output PIDS: [], Procs: [“bad pid
C#应用程序界面开发基础——窗体控制
Bayesian inference problem, MCMC and variational inference
echart:横向柱状图的类目文字位置调整
return new int[]{i + 1, mid + 1};return {i + 1, mid + 1};
如何通过W3school学习JS/如何使用W3school的JS参考手册
H5 sunflower operation
蓝桥杯 历届试题 蚂蚁感冒
为什么C语言用使用其他文件的结构体变量时,声明结构体别名还不行,必须使用本名?(使用别名时不能加struct)
Variational graph auto-encoders (VGAE)
How does the computer check whether the driver is normal
2342
机器学习笔记 temperature+Softmax
Double contextual relationship network for polyp segmentation
In which industries did the fire virtual human start to make efforts?
2022年4月10日--使用C#迈出第一步--使用C#从.NET类库调用方法(没看懂)
I. The HR system is put on the enterprise wechat ISV to enhance the in-depth application of enterprise wechat in service chain retail and other industries
Wechat applet_ 8. View and logic
论文阅读:Duplex Contextual Relation Network for Polyp Segmentation
智能计算系统3 Plugin 集成开发的demo