I am trying to use 'OpenGL Image' library( http://gli.g-truc.net/0.8.1/index.html )( abbreviated as GLI, like GLM ) in my Visual Studio 2015 project, but have no luck to have it successfully compiled due to the error as follows:
c:\users\sabro_000\downloads\gli-0.8.1.1\gli./core/load.inl(32): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
First off, it's a warning, not an error (at least on default settings). This means you can build and run your code just fine even with this warning.
Second, the simple solution is to do as the warning says and
#define _CRT_SECURE_NO_WARNINGS. Note that the "more secure" functions ending in
_s were never really adopted by C standard library vendors other than Microsoft, and there is a proposal to remove them from the standard again. You're probably better off not using them.