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

error C4996: 'strerror' when reading file #422

Closed
ghost opened this issue Jan 8, 2017 · 1 comment
Closed

error C4996: 'strerror' when reading file #422

ghost opened this issue Jan 8, 2017 · 1 comment
Assignees
Labels
platform: visual studio related to MSVC solution: duplicate the issue is a duplicate; refer to the linked issue instead

Comments

@ghost
Copy link

ghost commented Jan 8, 2017

Hello (sorry for my english...),

I have an error when reading file,with this code :
std::ifstream i(fileName); nlohmann::json j; i >> j; std::cout << j;
here is the error message:
warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

I'm on Visual Studio 2017, and to avoid this message i have to disable SDL Check, so compiler consider it as simple warning, but i think this issue should be revised

Many thanks in advance

@nlohmann nlohmann added the solution: duplicate the issue is a duplicate; refer to the linked issue instead label Jan 8, 2017
@nlohmann
Copy link
Owner

nlohmann commented Jan 8, 2017

Duplicate of #403. Fixed since version 2.0.10.

@nlohmann nlohmann closed this as completed Jan 8, 2017
@nlohmann nlohmann self-assigned this Jan 8, 2017
@nlohmann nlohmann added the platform: visual studio related to MSVC label Jan 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: visual studio related to MSVC solution: duplicate the issue is a duplicate; refer to the linked issue instead
Projects
None yet
Development

No branches or pull requests

1 participant