Tencent / rapidjson

A fast JSON parser/generator for C++ with both SAX/DOM style API
http://rapidjson.org/
Other
14.21k stars 3.53k forks source link

Compilation error on Solaris platform - due to rapidjson inclusion #686

Open psbramsiva opened 8 years ago

psbramsiva commented 8 years ago

I am using rapidjson v1.0.2 on Solaris platform for compiling. it gives compilation error when i include rapidjson header files. rapidjson/allocators.h", line 71: Error, nofieldident: malloc is not a member of _SASSTL is there any solution for this issue?

miloyip commented 8 years ago

It appears that std::malloc() was not defined in your platform. You may define it, or create a custom RapidJSON allocator.

psbramsiva commented 8 years ago

Can you elaborate on how to create custom RapidJSON allocator. ? Because this error introduced after rapidjson inclusion only, As our platform doesn't need cstdlib, it is not defined. Add to that, Can you confirm if Rapidjson is supported/tested on platforms AIX/HP-UX/Solaris.