th3falc0n
th3falc0n

Reputation: 1427

Add C++ compiler to Eclipse C project

Hi I am currently developing a C application in eclipse and now I need to compile a library which uses C++. Is there a way to add .cpp handling (MinGW C++ Compiler) to and existing C Project in Eclipse CDT?

Upvotes: 6

Views: 1939

Answers (1)

dandan78
dandan78

Reputation: 13864

According to this post on the Eclipse forum, just add

<nature>org.eclipse.cdt.core.ccnature</nature>

to the the <natures></natures> tag of your .project file.

Upvotes: 6

Related Questions