Changeing from C to C++

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changeing from C to C++

555 Views
philipsearcy
Contributor I

I have a C project working with the evaluation version of CodeWarrior, but when i try adding C++ classes, it acts like it doesn't know about C++. I get errors like "unknown type name class". I see references in the settings for a C compiler, but know a C++ compiler. I tried creating a brand new project and selecting C++, but then when I went to configure the processor in Processor Expert, it said that a processor was not selected even though I had selected my Kintetis K51DN512 in the wizard. Questions - (1) how do I get C++ to build, and (2) how do I get a new project to use my processor?

Labels (1)
0 Kudos
Reply
1 Reply

429 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hello Philip,

If you select C++ as language in the new project wizard, then the Processor Expert option under the Rapid Application Development is disabled, this is because Processor Expert creates C code but not C++. If you need to create a C++ project and also use Processor Expert here is this post that can help you:

http://mcuoneclipse.com/2012/10/04/processor-expert-gcc-c-and-kinetis-l-and-mqxlite/

Best regards!

Carlos

0 Kudos
Reply