AnsweredAssumed Answered

Re: C++ Project using Processor Expert beans

Question asked by Processor Expert on Apr 27, 2011
Latest reply on Dec 8, 2015 by Robert Madonna

Hello,


Processor Expert (PE) and Device Inititialization (DI) do not support C++ compiler and our drivers are not tested with that compiler. However there is workaround for that. You can create regular C project using usual way and  then you can add your own main.cpp with main function that will be used instead of main.c. Then you have to rename the original main function to another name instead of main. After this you should be able to compile such created project. Just please note that all generated includes of component headers have to be manually copied into new main.cpp file and surrounded by extern “C” {} declaration.  For more details please find attached example project. It may be needed to also set compiler for C++ (for more details please see attachement).

 

best regards
Vojtech Filip
Processor Expert Support Team

Outcomes