Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile #38

Closed
larch13 opened this issue Jul 3, 2020 · 1 comment
Closed

Unable to compile #38

larch13 opened this issue Jul 3, 2020 · 1 comment

Comments

@larch13
Copy link

larch13 commented Jul 3, 2020

I am using visual studio 2019 and whenever I try to compile I get this error coming from some of the SOIL2 files

'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.

how can I fix this I tried putting #define _CRT_SECURE_NO_DEPRECATE at the beginning of the offending files but it completely messed everything up. what can I do to fix this?

@SpartanJ
Copy link
Owner

SpartanJ commented Jul 3, 2020

This is an issue just with your own project configuration. The project generated with premake5 will work just fine. You just needed to add _CRT_SECURE_NO_DEPRECATE in your preprocessors:
Untitled
Regards

@SpartanJ SpartanJ closed this as completed Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants