-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile fails on Particle with cJON.h errors #3
Comments
At HEAD, line 58 reads: void _(_malloc_fn)(size_t sz); |
That looks like this code is not from cJSON but has been added by somebody else later. |
It is very likely that you are using old version cJSON in c++, where size_t is not supported as default type by some c++ compiler. So the compiler may interpret it as a declaration of some member function. |
…malloc_overrides.h neglected to include <stddef.h> even though the reference 'size_t' and 'NULL'.
Here is the error messages:
In file included from subscribe2.cpp:1:0:
cJSON.h:58:24: error: expected ';' at end of member declaration
void _(_malloc_fn)(size_t sz);
^
cJSON.h:58:33: error: expected ')' before 'sz'
void _(_malloc_fn)(size_t sz);
^
The text was updated successfully, but these errors were encountered: