语言

Menu
Sites
Language
From C to C++

When I create New Native Project I always get project with *.C files, but not *.CPP. How can I change this?

响应

3 回复
Sergey Artuh

Rename file from .c to .cpp

 

Alex Dem

Hi,
Rename *.c files to *.cpp. Compiler will build as cpp autonatically.
Alexey.

Anup

Hi,

Currently there is no default c++ app template. But you can rename existing files to cpp or add new cpp files using new->source files->Template (Defalt C++ source template)->test.cpp->Finish.

You also need to set Properties->C/C++ Build->Settings->Tool Settings tab->C++ Compiler->Language Standard to ISO C++ 11(-std=c++0x).