CW10, K60: how do I compile using C++?

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

CW10, K60: how do I compile using C++?

1,501 次查看
gloucks
Contributor III

I have a .cpp file in my project. I was expecting it to be compiled using C++. It isn't. How do I tell CW that it's a C++ file?

 

G

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

1,084 次查看
stanish
NXP Employee
NXP Employee

Hello gloucks,

 

You can select your CPP file and right click -> Properties -> "ARM Compiler" -> "Language" -> check "Force C++ Compilation"

 

 

Stanish

0 项奖励
回复

1,084 次查看
konrada_anton
Contributor III

And apparently C++ isn't supported in the free-as-in-beer-and-code-size-limited editions, if that's what you have.

 

<rant> I once had the C++ compiler downgrade itself transparently to a C compiler because my network connection (with the license server behind it) was down, which resulted in hundreds of "Syntax error"s in header files clogging my problem view. </rant>

0 项奖励
回复

1,084 次查看
Lertets
Contributor I

Is this true? I've been trying to get it to work for hours now.  I have codewarrior free 10.1 and when I try to make a class and compile it, I get the message "unidentified identifier 'class'"

0 项奖励
回复

1,084 次查看
J2MEJediMaster
Specialist I

C++ support is available only in the Professional version of the tools. See this fact sheet for the details.

 

---Tom

0 项奖励
回复

1,084 次查看
amish_M4
Contributor I

Does the 30 Day eval version support c++?

0 项奖励
回复

1,084 次查看
konrada_anton
Contributor III

Still, I wish the compiler error message said as much.

 

0 项奖励
回复