c++ rapidjson 使用
所属分类 c
浏览量 961
RapidJSON is self-contained and header-only.
It does not depend on external libraries such as BOOST.
It even does not depend on STL.
直接把 头文件放到项目里
https://github.com/Tencent/rapidjson
g++ tutorial.cpp
In file included from tutorial.cpp:4:
In file included from ./rapidjson/document.h:20:
./rapidjson/reader.h:1697:57: error: a space is required between consecutive
right angle brackets (use '> >')
GenericStringStream> srcStream(s.Pop());
>> 被认为 是 右移动运算符
使用 c++11 即可
g++ -std=c++11 tutorial.cpp
./a.out
完整项目
https://gitee.com/dyyx/hellocode/tree/master/web/tech/cpp/rapidjson/demo
上一篇
下一篇
c++11 线程实例
NULL 与 nullptr
c++ 变量名 冲突
大端和小端模式
c++ header-only library
c++ 标准输入输出