在 Visual Studio 2013 中编译 sqlite.c 时收到错误 C4996

Error C4996 received when compiling sqlite.c in Visual Studio 2013(在 Visual Studio 2013 中编译 sqlite.c 时收到错误 C4996)
本文介绍了在 Visual Studio 2013 中编译 sqlite.c 时收到错误 C4996的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的项目从 Visual Studio 2012 移植到 2013 并且 sqlite.c 不会在其中编译.我收到此编译时错误:

I ported my project over from Visual Studio 2012 to 2013 and sqlite.c will not compile in it. I'm receiving this compile-time error:

error C4996: 'GetVersionExA': was declared deprecated
error C4996: 'GetVersionExW' was declared deprecated

我得到了最新版本的 sqlite 以确保它没有被考虑在内,但它没有.我不知道该怎么办这个错误.我没有对源代码做任何修改;我只是创建一个项目,包括 sqlite.h 和 sqlite.c.谢谢.

I got the latest version of sqlite to ensure it hasn't been accounted for, but it has not. I'm not sure what to do about this error. I have made no modifications to the source; I'm simply creating a project and including sqlite.h and sqlite.c. Thanks.

推荐答案

这是因为SDL检查,尝试禁用SDL检查:

This is because SDL check, try to disable SDL checks:

Project Properties > Configuration Properties > C/C++ > General > SDL checks [set to No]

这篇关于在 Visual Studio 2013 中编译 sqlite.c 时收到错误 C4996的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

FastAPI + Tortoise ORM + FastAPI Users (Python) - Relationship - Many To Many(FastAPI+Tortoise ORM+FastAPI用户(Python)-关系-多对多)
Window functions not working in pd.read_sql; Its shows error(窗口函数在pd.read_sql中不起作用;它显示错误)
(Closed) Leaflet.js: How I can Do Editing Geometry On Specific Object I Select Only?((已关闭)Leaflet.js:如何仅在我选择的特定对象上编辑几何图形?)
in sqlite update trigger with multiple if/Case Conditions(在具有多个IF/CASE条件的SQLite UPDATE触发器中)
Android: Why is Room so slow?(Android:为什么Room这么慢?)
Remote Procedure call failed with sql server 2008 R2(使用 sql server 2008 R2 的远程过程调用失败)