VS2015 使用问题记录

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Thinkcortex/article/details/79126627

1.  错误 C1189#error:  Macro definition of vsnprintf conflicts with Standard Library function declaration __xxx__c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\stdio.h1421

 使用了winPcap库, vs2015已经定义了vsnprintf, 导致冲突。找到相关的定义处,#define vsnprintf _vsnprintf,改为

#if defined(_MSC_VER) && _MSC_VER<1900
#define vsnprintf _vsnprintf
#endif
 snprintf 类似

2. 错误C1010 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h"”?

     设置   项目----属性----配置属性----C/C++ ----预编译头,其中预编译头改为 不适用预编译头


3.  运行时丢失dll

 项目----属性----配置属性----C/C++ ----代码生成----运行库

debug选择多线程调试 DLL (/MDd), release选择多线程 (/MT)




猜你喜欢

转载自blog.csdn.net/Thinkcortex/article/details/79126627