1、warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
出错原因分析: detector 是一个Vector容器 ,detecot.size() 在容器说明中 被定义为: unsigned int 类型, 而j是int 类型 所以会出现: 有符号/无符号不匹配警告
错误改正: 定义j为unsigned类型后就可以了
即: for(unsigned int j=0;j<detector.size();j++)
或者: for(size_t int j=0;j<detector.size();j++)
vs出错提示程序无法正常启动(0xc000007b)解决方案
http://bbs.csdn.net/topics/392075264
http://bbs.csdn.net/topics/391863670
http://blog.csdn.net/zhuimenglizhi/article/details/52203003
并没有解决
5、突然64位的编译器都没有了,只有win32
解决:
配置管理器——活动解决方案平台——新建——(新平台)×64——(从此处复制)选空白
6.error LNK2005: "void __cdecl cc_regis(class cv::Mat,class cv::Mat,class cv::Mat &,class cv::Mat &,class cv::Mat &)" (?cc_regis@@YAXVMat@cv@@0AEAV12@11@Z) 已经在 main.obj 中定义
解决:
LNK2005错误是由于你在main()函数中引用的是#include "bank_ac.cpp" 而非 #include "bank_ac.h"所导致; 改成#include "bank_ac.h"之后还会有一个因为内联函数造成的LNK2019问题,改正方式是将 cpp文件中的内联函数定义移到类的头文件中。 内联函数的定义还是有一定的规则的。
改了include的引用之后,只引用头文件,没有了错误,剩下的再讲。
7.直接对函数文件cpp进行编译时出现错误
无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用
http://blog.csdn.net/yj574008854/article/details/45396615https://jingyan.baidu.com/article/d621e8da0d7c022864913f40.html
8.远程操作的时间比预期花费得要长
https://www.cnblogs.com/chinaboyzzy/p/4833551.html
https://www.cnblogs.com/chinaboyzzy/p/4833551.html
http://www.xpgod.com/article/58401.html
9.
error MSB8020: The builds tools for v120 (Platform Tools
http://blog.sina.com.cn/s/blog_e5440f8f0102w9lu.html
更改配置平台
10.
Error 1 error C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
http://blog.csdn.net/hengbao4/article/details/53300894
解决方法
使用VS会出现'scanf': This function or variable may be unsafe. Consider using scanf_s ins这种错误,这是新版vc库添加的警告因为微软认为scanf的使用存在安全隐患,因为C/C++中的字符串处理都是以\0为截止符的,如果搜索不到\0,容易出现字符串越界所有vc扩展的所谓安全标准库,都添加了一个参数用以指定字符串参数的长度,用以避免这种安全隐患。 不想出现这种情况,其实很简单
https://jingyan.baidu.com/article/363872ecd87e5d6e4ba16f1c.html
11.
Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Cannot find or open the PDB file
解决方法
http://blog.csdn.net/lj695242104/article/details/14162183