Changeing from C to C++

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Changeing from C to C++

977 次查看
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?

标签 (1)
0 项奖励
回复
1 回复

851 次查看
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 项奖励
回复