Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

error: 'const void*' is not a pointer-to-object type #1790

Copy link
Copy link
Closed
nRF24/RF24
#864
nRF24/RF24#864
@tbillion

Description

@tbillion
Issue body actions

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

  1. The issue happens at compile time
  2. The error is not in the list

Environment

  • Microcontroller: pico
  • Core/Framework: ear philhower most recent
  • IDE: 1.8.16

Reproduction code

just adding the library throws the error , no actual code to perform actions has been added

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.


#include <FanController.h>
#include <WS2812FX.h>
#include "namedColors256.h"
#include "RF24.h"
#include "RF24Network.h"
#include "RF24Mesh.h"
#include <SPI.h>
#include <EEPROM.h>
#include <LittleFS.h>
#include <ArduinoJson.h>

if i add them like this it will compile.

#include <ArduinoJson.h>
#include <FanController.h>
#include <WS2812FX.h>
#include "namedColors256.h"
#include "RF24.h"
#include "RF24Network.h"
#include "RF24Mesh.h"
#include <SPI.h>
#include <EEPROM.h>
#include <LittleFS.h>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.