-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Compiling issues with libc 2.12 #1483
Copy link
Copy link
Closed
Labels
release item: 🔨 further changesolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Milestone
Metadata
Metadata
Assignees
Labels
release item: 🔨 further changesolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
What is the issue you have?
Compile error.
Please describe the steps to reproduce the issue. Can you provide a small but working code example?
https://sourceware.org/bugzilla/show_bug.cgi?id=15366
I have compile error in debug mode on this line:
https://github.com/nlohmann/json/blob/develop/include/nlohmann/detail/conversions/to_chars.hpp#L754
What is the expected behavior?
Code should be compiled.
And what is the actual behavior instead?
It doesn't compile.
Which compiler and operating system are you using? Is it a supported compiler?
I'm on gcc 5.3 with C++14 with RH 6 compatible ABI
(https://www.softwarecollections.org/en/scls/rhscl/devtoolset-4/ - RH 6)
Did you use a released version of the library or the version from the
developbranch?Both.
If you experience a compilation error: can you compile and run the unit tests?
__STDC_LIMIT_MACROSwas added to the project and the issue has gone.Possible fix:
#if !defined(NDEBUG) && !defined(__STDC_LIMIT_MACROS)#define __STDC_LIMIT_MACROS#endif(may be with
#pragma push_macroand#pragma pop_macro)to
https://github.com/nlohmann/json/blob/develop/include/nlohmann/detail/conversions/to_chars.hpp#L2