You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
io.h uses sprintf. VS2019 gives deprecated warnings as errors so the project will not build. I changed io.h to use sprintf_s which resolves the issue. I am not a github user really so I don't want to try committing this change. Thank you for this library, I am looking forward to trying it out.
The text was updated successfully, but these errors were encountered:
Could you tell how you did that? I'm getting 3 errors when changing all sprintf to sprintf_s in io.h. C2440 'function': cannot convert from 'float' to 'const char *const' Line 82 C2440 'function': cannot convert from 'float' to 'const char *const' Line 125 C2440 'function': cannot convert from 'float' to 'const char *const' Line 167
I'm having the same behaviour here. I have isolated it with this .c file:
test.c
#include <sys/types.h>
#include <cglm/cglm.h>
If you compile it with:
cl /c /Icglm/include test.c /MDd /W3
You 'll see the sprintf warnings.
I think the problem is this sys/types.h ends up including vcruntime.h, which is where the _CRT_INSECURE_DEPRECATE macro is defined, and your definition from common.h comes later in this case.
io.h uses sprintf. VS2019 gives deprecated warnings as errors so the project will not build. I changed io.h to use sprintf_s which resolves the issue. I am not a github user really so I don't want to try committing this change. Thank you for this library, I am looking forward to trying it out.
The text was updated successfully, but these errors were encountered: