-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fails to build with clang/libc++ #910
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Renaming would be fine. Could you submit a PR for that? |
Done via #911. I've only tested with clang yet. Is this file used anywhere in the build process? |
I don't remember why this file is generated. I think it's ok to rename it. However, I know where it's generated, in
... Oh, I see where it's used, in |
That 'version' file should have been harmless. It wasn't in a directory that contains c++ code, so why was the compiler pointed at it? That is, I don't think there was a reason to have I don't know enough about meson to guess where the offending |
https://mesonbuild.com/Include-directories.html
Not sure, but that seems to indicate Meson does add some |
No, the file version.in is generated in the build directory (aka where you run CMake). The original version file is untouched from CMake (unless you run CMake in the root directory which is harmful). |
Please, make a release with this, as your distro have to be patched to be used this way |
Hello,
I'm trying to build jsoncpp 1.8.4 with clang and libc++.
To my understanding, cstddef.h from libc++ does
#include <version>
and therefore includes the filename version in the project directory, which isn't a C++ header file, thus the error.I don't know how we can fix that correctly though. Renaming that file?
The text was updated successfully, but these errors were encountered: