C++ Support
Hi, I am from Arduino. I can get some code here to work. Somehow, I am not able to get CPP library to work here.
Any suggestion on how to get CPP to work here?
Thanks;
Adding extern "C" { } around C function declarations? e.g. AIR32F10xLib
The issue is the compiler does not recognize C++ and class.
I think to make C++ works, I need to change to arm-none-eabi-c++ in the rules file. Somehow, I try to change it, but some parameters are interlinked and can't run properly
Thanks for your update for CPP support. Your blinkCPP worked.
But when I try to wrap a CPP class, i got error: **undefined reference to operator new(unsigned int)'**`
Archive.zip I attach the whole code for the Rectangle Class
new and delete operators are not included in gcc-arm-none-eabi, use malloc and free instead.
Thanks. It works. CPP support is a bridge for easy migration of many library to this.