lpcware

NXP USB lib with c++ code

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Noirim on Mon Nov 04 05:56:09 MST 2013
Hi,
I have tried to use NXP Usb lib but it seems that it couldn't work in a c++ project. Indeed when I try to include "usb.h" in my "main.cpp" file, the compilation process fails. Its work only if my project use a C99 code generation option (--gnu --c99). But in this case, I have to rewrite my code since I have functions that have been overloaded.

Is there any solution or I need to change  my code?

Thanks.

Outcomes