fatal error LNK1149: 输出文件名匹配输入文件名
程序员文章站
2022-06-09 16:02:03
...
发生这种错误时,按百度上找到的结果来测试无一成功,后面只好加上#pragma message,在每个认为有链接这个项目的的地方加个输出,才发现原来是项目编译前给导入了,去掉后编译通过
标红的那两个项目就是编译不过的,原来是因为提示无法解析的符号才加个lib,后面把这两个lib,注释掉也能编译通过的,搞不清楚怎么回事,先做个记录,以后再说
#ifndef _DEBUG
#pragma message("游戏框架")
#pragma comment (lib,"../../链接库/ComService.lib")
#pragma comment (lib,"../../链接库/ClientShare.lib")
#pragma comment (lib,"../../链接库/SkinControls.lib")
//#pragma comment (lib,"../../链接库/VideoService.lib")
//#pragma comment (lib,"../../链接库/PropertyModule.lib")
#else
#pragma comment (lib,"../../链接库/ComServiceD.lib")
#pragma comment (lib,"../../链接库/ClientShareD.lib")
#pragma comment (lib,"../../链接库/SkinControlsD.lib")
//#pragma comment (lib,"../../链接库/VideoServiceD.lib")
//#pragma comment (lib,"../../链接库/PropertyModuleD.lib")
#endif