当前位置:网站首页>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
边栏推荐
- 数论 --- 欧拉函数、筛法求欧拉函数、欧拉定理、费马小定理详细证明
- Why is it not enough to declare the structure alias when using the structure variable of other files in C language, and the proper name must be used? (cannot add struct when using alias)
- Markdown Mermaid planting grass (1)_ Introduction to Mermaid
- 令人惊艳的NanoPC-T4(RK3399)作为工作站的初始配置和相关应用
- 首部元宇宙概念小说《元宇宙2086》获得2022年上袭元宇宙奖
- 大火的虚拟人在哪些产业开始发力?
- Markdown mermaid种草(1)_ mermaid简介
- Time series forecasting based on trend and seasonality
- 100人成绩的平均
- From design delivery to development, it is easy and efficient!
猜你喜欢

机器学习笔记 temperature+Softmax

Web3 that unleashes the value of the Internet

阿里开源(EasyExcel)

秋招经验分享 | 银行笔面试该怎么准备

The white paper on the panorama of the digital economy and the digitalization of consumer finance were released

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

How to change the status bar at the bottom of win11 to black? How to change the status bar at the bottom of win11 to black

Bayesian Reference problem, mCMC and variational reference

Paper 3 vscode & texlive & sumatrapdf create a perfect tool for writing papers

Fontawesome icon for color gradient
随机推荐
Paper 3 vscode & texlive & sumatrapdf create a perfect tool for writing papers
i人事HR系统上架企业微信ISV,增强企微在服务连锁零售等行业深度应用
数字经济专家高泽龙:映客更名映宇宙,元宇宙会成为映客下一个增长引擎吗?
数据基础设施升级窗口下,AI 新引擎的技术方法论
matlab 受约束的 Delaunay 三角剖分
智能计算系统1 环境搭建
Kettle (VI): full database backup based on kettle
Huawei cloud onemeeting tells you that the whole scene meeting is held like this!
Chunfeng power and Huawei work together to build a smart Park benchmark, and the future factory innovation will reach a new level
数论 --- 欧拉函数、筛法求欧拉函数、欧拉定理、费马小定理详细证明
Ffmpeg usage in video compression processing
Can only one task be submitted by one table if the flinkcdc is submitted by flinksql? When there are thousands of watches
视差js特效js轮播图插件
行业分析| 快对讲,楼宇对讲
return new int[]{i + 1, mid + 1}; return {i + 1, mid + 1};
颜色渐变的FontAwesome图标
Figure introduction to neural networks (GNN, GCN)
秒杀系统设计
多测师肖sirapp中riginal error: Could not extract PIDs from ps output. PIDS: [], Procs: [“bad pid
Machine learning notes temperature+softmax