Reputation: 269
I get the above mentioned error when I use the following in Visual Studio 2012(I am using C++):
#include <tesseract\baseapi.h>
Could anyone shed some light on what may be wrong?
Upvotes: 2
Views: 968
Reputation: 34625
Non secure CRT functions are deprecated by default. You can enable them back by defining the macro _CRT_SECURE_NO_WARNINGS
. Try -
#define _CRT_SECURE_NO_WARNINGS
#include <tesseract\baseapi.h>
Or add the macro to the project properties list. Read the article Eliminating Deprecation Warnings at MSDN.
From the article -
There are several ways to eliminate deprecation warnings for the older, less secure functions. The simplest is simply to define _CRT_SECURE_NO_WARNINGS or use the warning pragma. Either will disable deprecation warnings, but of course the security issues that caused the warnings still exist. It is far better to leave deprecation warnings enabled and take advantage of the new CRT security features.
Upvotes: 1