I'm having some troubles to instanciate a subclass. The linker is giving me some errors of instanciate in my opinion. I have tried in many manners but I can't even instanciate it for using this object.
This is what linker is giving as an error:
../src/application.cpp:44:55: error: invalid conversion from 'Adafruit_MMA8451*' to 'int32_t {aka long int}' [-fpermissive]
Adafruit_MMA8451 mma = new Adafruit_MMA8451(0x12345678);
^
In file included from ../src/application.cpp:28:0:
../src/Adafruit_MMA8451.h:82:5: error: initializing argument 1 of 'Adafruit_MMA8451::Adafruit_MMA8451(int32_t)' [-fpermissive]
Adafruit_MMA8451(int32_t id );
^
make: *** [obj/src/application.o] Error 1