I am trying to compile a sample jsoncpp example, but there are tons of compiling errors showing up in \"standard\" headers. did any body see this any time ?
[~]
If you compile with -I.../include/json
, then the standard library might accidentally include a JSON header. (In this case, according to asuter, it was features.h
.)
The parent directory is a kind of "namespace" for header files. That's why a good practice for any library with headers like incdir/foo/bar.h
is -Iincdir
and #include
.