How do I use c++?

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

How do I use c++?

1,935件の閲覧回数
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 ? 

ラベル(1)
タグ(3)
2 返答(返信)

1,548件の閲覧回数
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

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