Is it possible to use the usblib using C++ in code composer?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is it possible to use the usblib using C++ in code composer?
Thank you Ki-Soo Lee, the wiki link is helpful.
I am trying to modify the usb_dev_serial.c to a c++ project, it seems like the compiler doesn't like the void * that is used in the project. I have changed the usb_dev_serial to a .cpp extension and have enveloped necessary includes and prototypes/definitions using extern "C" as the wiki link describes. As a result, I get the following error:
error #169: argument of type "void *" is incompatible with parameter of type "tLineCoding *"
Is it impossible to use this kind of declaration using c++ in code composer?
Is there a way I can get around this error?