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

'to_string' is not a member of 'std' #364

Closed
joshuagahan opened this issue Nov 21, 2016 · 5 comments
Closed

'to_string' is not a member of 'std' #364

joshuagahan opened this issue Nov 21, 2016 · 5 comments
Labels
platform: mingw related to MinGW

Comments

@joshuagahan
Copy link

added json.hpp to project and imported, set "g++ follow c++ ISO C++ language standard [-std=c++11] and get compiler errors for to_strong and stoi. I'm using GNU GCC Compiler, Codeblocks 16.01 IDE, on windows.

If this is something I'm doing wrong, vice an issue, I'm unaware. I'm a very very new CS major and don't honestly know much about compilers, includes, well pretty much anything.

@gregmarr
Copy link
Contributor

Sounds like the GCC compiler in that version doesn't have a complete standard library. Can you determine which version of GCC is included?

@joshuagahan
Copy link
Author

4.9.2 far as I can tell, I used codeblocks auto install for minGW and can't go g++ --version to check. I've been using and running it for months with no problem, its just became an issure now trying to use this library

@nlohmann
Copy link
Owner

From the README:

For GCC running on MinGW or Android SDK, the error 'to_string' is not a member of 'std' (or similarly, for strtod) may occur. Note this is not an issue with the code, but rather with the compiler itself. On Android, see above to build with a newer environment. For MinGW, please refer to this site and this discussion for information on how to fix this bug. For Android NDK using APP_STL := gnustl_static, please refer to this discussion.

@nlohmann nlohmann added the platform: mingw related to MinGW label Nov 21, 2016
@nlohmann
Copy link
Owner

@joshuagahan Could you fix the issue?

@nlohmann
Copy link
Owner

nlohmann commented Dec 1, 2016

Inactive.

@nlohmann nlohmann closed this as completed Dec 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: mingw related to MinGW
Projects
None yet
Development

No branches or pull requests

3 participants