How do I use c++?

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

How do I use c++?

1,926 次查看
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,539 次查看
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,539 次查看
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 项奖励
回复