How do I use c++?

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

How do I use c++?

1,175 Views
vladimirakopyan
Contributor I

When I try to use c++ in KDS i get an error " error: unknown type name 'class' "

How does one switch from main.c to main.cpp ? 

Labels (1)
Tags (3)
2 Replies

788 Views
mike1974
Contributor III

I think this might answer your question:

Preventing KDS from wanting to build main.c instead of main.cpp?

See my answer in that thread

--Mike

788 Views
BlackNight
NXP Employee
NXP Employee

I'm not sure, but are you trying to compile a .c file in C++ mode?

Maybe this is what you are looking for:

Compiling C Files with GNU ARM G++ | MCU on Eclipse

I hope this helps,

Erich

0 Kudos