-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Undefined symbol EOF #2755
Comments
I can't reproduce the issue - we use several compilers include GCC9 on Ubuntu in our CI. Indeed there is one occurrence of That aside, I will create a PR that replaces this occurrence. |
thanks! btw, when 3.9.2 can be expected? |
When it's done ;) Seriously, I have no idea... |
Then why not release it now? It is better to release less things but a bit more often, then release a lot but never... |
Because it’s not ready yet. This is a side project - there are no deadlines here. |
I have this issue now with the latest version, there are two places where the EOF macro is used. |
Well, I'm compiling with GCC, but we're using clang-tidy (LLVM 18) to check the code as part of the workflow, and it complains about the "undefined symbol". I guess it's not about supporting the symbol, but that clang(-tidy) is more pedantic (which is good, actually). I patched the release version of json.hpp (replacing |
Thanks. I'll create a PR for this as well. |
* 📝 update customers * ♻️ replace EOF with char_traits #2755
* 📝 update customers * ♻️ replace EOF with char_traits nlohmann#2755
What is the issue you have?
I am getting compilation error like "Undefined symbol EOF" with gcc9 on Ubuntu 18.04
Please describe the steps to reproduce the issue.
Include single header file json.hpp and try to compile code that uses it.
Can you provide a small but working code example?
What is the expected behavior?
I can see EOF still used in the one place in the single header. Did not check multiple headers.
After replacing with
std::char_traits<char>::eof()
it has started to work.Please incorporate this small change.
And what is the actual behavior instead?
Which compiler and operating system are you using?
Which version of the library did you use?
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: