Build
介绍编译时的报错,如果链接等报错或者警告
Livy0123
这个作者很懒,什么都没留下…
展开
-
Build_Warning_C4003
错误描述1> Ping.cpp1>c:\qt\qt5.1.1\5.1.1\msvc2010_opengl\include\qtcore\qdatetime.h(121): warning C4003: not enough actual parameters for macro ‘min’解决措施在ping.cpp文件的最开头添加如下语句:#define NOMINMAX before #include “windows.h”然后重新编译后即可...原创 2022-01-04 10:55:18 · 435 阅读 · 0 评论 -
Build_Error_C1010
一、报错描述unexpected end of file while looking for precompiled header. Did you forget to add ‘#include “StdAfx.h”’ to your source?二、解决方案先确认是哪个工程编译的时候报的错在vs编译的Output消息窗口,查看具体报错行所对应的报错文件去工程中找到对应的cpp文件,然后"右键"——“Properties”——“Configuration Properties”——“C/C+原创 2021-12-31 10:23:05 · 309 阅读 · 0 评论 -
Build_Link_LNK1104
LNK1104: cannot open file ‘qtmaind.lib’1. 环境vs2010qt5.1.12. 解决措施右键工程属性——Configuration Properties——Linker——Input——Additional Dependencies中使用绝对路径:例如C:\Qt\Qt5.1.1\5.1.1\msvc2010_opengl\lib\qtmaind.libC:\Qt\Qt5.1.1\5.1.1\msvc2010_opengl\lib\Qt5Cored.原创 2021-12-25 21:42:40 · 946 阅读 · 0 评论 -
Build_Warning_C4005
错误提示warning C4005: “AF_IPX”: 宏重定义warning C4005: “AF_IPX”: 宏重定义解决方案方法一由以上代码可以看出如果在没有定义WIN32_LEAN_AND_MEAN宏的大前提下windows.h有可能包含winsock.h 头文件,因此我们得出如下两种解决方法一、在每个包含<windows.h>之前定义WIN32_LEAN_AND_MEAN宏,如下所示:#define WIN32_LEAN_AND_MEAN#include <win原创 2021-12-25 21:40:09 · 532 阅读 · 0 评论 -
Build_Warning_C4819
编译VC++程序的时候出现如下提示警告:warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss这个警告的意思是:在该文件中有一个或多个字符不是Unicode字符!要求把这个字符变成Unicode字符。难题在编译信息里并没有提示是哪个字符,或者是在原创 2021-08-19 16:29:10 · 95 阅读 · 0 评论 -
Build_Error_ Project not selected to build for this solution configuration
Project not selected to build for this solution configuration.When you upgrade your older solution files to latest version of visual studio 2010 or 2012 you may get compilation output as “Project not selected to build for this solution configuration”, eve原创 2021-08-24 16:21:12 · 219 阅读 · 0 评论