Error C4996 received when compiling sqlite.c in Visual Studio 2013

后端 未结 5 1728
生来不讨喜
生来不讨喜 2020-12-23 21:49

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: \'GetVersi         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 22:42

    Actually C4996 is a warning, but sometimes it behaves as an error.
    Anyways, you can just disable it, by using the /wd4996 compiler option, or using the pragma:

    #pragma warning(disable: 4996)
    

提交回复
热议问题