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

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

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

993 Views
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

Labels (1)
0 Kudos
6 Replies

576 Views
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 Kudos

576 Views
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 Kudos

576 Views
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 Kudos

576 Views
J2MEJediMaster
Specialist I

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

 

---Tom

0 Kudos

576 Views
amish_M4
Contributor I

Does the 30 Day eval version support c++?

0 Kudos

576 Views
konrada_anton
Contributor III

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

 

0 Kudos