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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

3,110件の閲覧回数
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 返答(返信)

2,693件の閲覧回数
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 件の賞賛
返信

2,693件の閲覧回数
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 件の賞賛
返信

2,693件の閲覧回数
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 件の賞賛
返信

2,693件の閲覧回数
J2MEJediMaster
Specialist I

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

 

---Tom

0 件の賞賛
返信

2,693件の閲覧回数
amish_M4
Contributor I

Does the 30 Day eval version support c++?

0 件の賞賛
返信

2,693件の閲覧回数
konrada_anton
Contributor III

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

 

0 件の賞賛
返信