Hi,
I have some experience with C but new to C++ and classes. I am having trouble compiling some code that looks like it has to do with the function definition not being compatible with the implementation?
I get the error in the main.cpp file and a warning for the definition in the header file. I have also included parts of the Class defition to show what DWdevice is.
The code is being compiled in Atmel Studio 7. (think it is using gnu c++ compiler)
staticvoid attachNewDevice(void (* handleNewDevice)(DW1000Device*))
Declares a function named attachNewDevice returning nothing and accepting a pointer to function returning nothing and accepting a pointer to DW1000Device.
void newDevice(DW1000Device device);
Declares a function named newDevice returning nothing and accepting (by value) a DW1000Device.
Maybe you meant void newDevice(DW1000Device* device);
Note: According to the rule of zero, it appears like you should not define a destructor.
According to the rule of three, if you must define a destructor, you should almost always define a copy constructor and a copy-assignment operator as well.