Closed
Description
Hello,
I'm trying to build jsoncpp 1.8.4 with clang and libc++.
[5/10] Compiling C++ object 'jsoncpp@sha/src_lib_json_json_writer.cpp.o'.
FAILED: jsoncpp@sha/src_lib_json_json_writer.cpp.o
clang++ -Ijsoncpp@sha -I. -I.. -I../include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual
-dtor -O3 -O2 -fPIC -MD -MQ 'jsoncpp@sha/src_lib_json_json_writer.cpp.o' -MF 'jsoncpp@sha/src_lib_json_json_writer.cpp.o.d' -o 'jsoncp
p@sha/src_lib_json_json_writer.cpp.o' -c ../src/lib_json/json_writer.cpp
In file included from ../src/lib_json/json_writer.cpp:7:
In file included from ../include/json/writer.h:10:
In file included from ../include/json/value.h:10:
In file included from ../include/json/forwards.h:10:
In file included from ../include/json/config.h:9:
In file included from /bin/../include/c++/v1/string:505:
In file included from /bin/../include/c++/v1/string_view:176:
In file included from /bin/../include/c++/v1/__string:57:
In file included from /bin/../include/c++/v1/algorithm:640:
In file included from /bin/../include/c++/v1/initializer_list:47:
In file included from /bin/../include/c++/v1/cstddef:38:
../version:1:1: error: expected unqualified-id
1.8.4
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?
Metadata
Metadata
Assignees
Labels
No labels