-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
error: 'const void*' is not a pointer-to-object type #1790
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
Comments
Hi @tbillion,
This error is in the list. Please look again. Best regards, |
Calling this macro caused the following error: 'const void*' is not a pointer-to-object type
Calling this macro caused the following error: 'const void*' is not a pointer-to-object type
In this case, it seems that the bug doesn't come from the core but from the RF24 library. |
@tbillion It would help to know the version of RF24 that you are using, so I can reproduce this. |
@2bndy5, here is a complete repro: #include <RF24.h>
#include <ArduinoJson.h>
void setup() {}
void loop() {} With RF24 v1.4.5, these four lines produce an error on some Arduino cores:
|
Thanks, that helps narrow down the cores, but the error in the OP doesn't seem to align with v1.4.5. I have a hunch at which line is the problem, but I just wanted to be sure. |
1.4.3 If it is not a breaking change I will upgrade and see if it persists . |
Avoid v1.4.4 because there is a known bug which was fixed in v1.4.5 (the latest). However, updating the lib won't likely fix this problem. I just wanted to know what version you were using so I could find the exact line that was causing the problem. Thank you for the response. |
Calling this macro caused the following error: 'const void*' is not a pointer-to-object type when defined by another library (in this instance ArduinoJSON) see bblanchon/ArduinoJson/#1790
I will let you know when the fix for this has been released (likely going to be v1.4.6) for the Arduino Library Manager... It should be soon, but I wanted to go through and fix the other |
I just released v1.4.6 which includes the fix for this. Please wait at least 24 hours for the release to get picked up by the Arduino Lib Manager, then update and enjoy... |
Description
/home/t/Arduino/libraries/ArduinoJson/src/ArduinoJson/Polyfills/pgmspace_generic.hpp: In instantiation of 'typename ArduinoJson6194_F1::enable_if<ArduinoJson6194_F1::is_pointer::value, T>::type ArduinoJson6194_F1::pgm_read(const void*) [with T = const arduino::__FlashStringHelper*; typename ArduinoJson6194_F1::enable_if<ArduinoJson6194_F1::is_pointer::value, T>::type = const arduino::__FlashStringHelper*]':
/home/t/Arduino/libraries/ArduinoJson/src/ArduinoJson/Deserialization/DeserializationError.hpp:85:12: required from here
/home/t/Arduino/libraries/RF24/RF24_config.h:206:38: error: 'const void*' is not a pointer-to-object type
206 | #define pgm_read_ptr(p) (*(p))
| ~^~~~~
exit status 1
Troubleshooter's report
Environment
Reproduction code
Remarks
nope would just like it to work.
edit
it has something to do with the order in which it is added to the project ...
if i add them like this it will not compile.
if i add them like this it will compile.
The text was updated successfully, but these errors were encountered: