mjs513
Senior Member+
Hi all
In my latest project I may have bitten off more that I can chew but here it goes. I am working on trying to get UAVcan working on the Teensy, pretty sure it can be done but am having problem with undefined references during compile. An example follows:
To me it seems like the compiler doesn't see the .cpp file associated with the header file which have a .hpp extension. If this is the case do the header files need to be changed to .h files? Or is there something wrong with the library structure that I put together? Is there a namespace issue? Don't know. It does seem to be a common error with undefined references so if I get the basic issue solved then the rest will follow.
I am attaching a copy of the library and the sketch. A little to big to post.
Any help will be appreciated.
Thanks
Mike
In my latest project I may have bitten off more that I can chew but here it goes. I am working on trying to get UAVcan working on the Teensy, pretty sure it can be done but am having problem with undefined references during compile. An example follows:
Code:
C:\Users\CYBERP~1\AppData\Local\Temp\arduino_build_52569\sketch\teensy_example_uavcan.ino.cpp.o: In function `uavcan::GenericSubscriber<uavcan::protocol::GetDataTypeInfo_, uavcan::protocol::GetDataTypeInfo_::Request_<0>, uavcan::TransferListener>::TransferForwarder::~TransferForwarder()':
C:\Users\CyberPalin\Documents\Arduino\libraries\libuavcan_teensy/uavcan/node/generic_subscriber.hpp:133: undefined reference to `uavcan::TransferListener::~TransferListener()'
To me it seems like the compiler doesn't see the .cpp file associated with the header file which have a .hpp extension. If this is the case do the header files need to be changed to .h files? Or is there something wrong with the library structure that I put together? Is there a namespace issue? Don't know. It does seem to be a common error with undefined references so if I get the basic issue solved then the rest will follow.
I am attaching a copy of the library and the sketch. A little to big to post.
Any help will be appreciated.
Thanks
Mike