need some help in compiling a jsoncpp sample code

后端 未结 5 1099
离开以前
离开以前 2021-01-25 01:31

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 ?

[~]         


        
5条回答
  •  南方客
    南方客 (楼主)
    2021-01-25 01:51

    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 .

提交回复
热议问题