1. 错误 C1189#error: Macro definition of vsnprintf conflicts with Standard Library function declaration __xxx__c:program files (x86)windows kits10include10.0.10240.0ucrtstdio.h1421
使用了winPcap库, vs2015已经定义了vsnprintf, 导致冲突。找到相关的定义处,#define vsnprintf _vsnprintf,改为
复制代码
snprintf 类似
1
2
3#if defined(_MSC_VER) && _MSC_VER<1900 #define vsnprintf _vsnprintf #endif
2. 错误C1010 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h"”?
设置 项目----属性----配置属性----C/C++ ----预编译头,其中预编译头改为 不适用预编译头
3. 运行时丢失dll
项目----属性----配置属性----C/C++ ----代码生成----运行库
debug选择多线程调试 DLL (/MDd), release选择多线程 (/MT)
最后
以上就是粗犷火龙果最近收集整理的关于VS2015 使用问题记录的全部内容,更多相关VS2015内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复