Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Difference between C and CPP nature.

Hi,
every cdt project needs to have the c-nature, c++ projects have the cc-nature in addition. One of the effects of
the cc-nature is that *.h files are interpreted as c++ headers rather than c-headers.
 
Markus.


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of padam chamoli
Sent: Tuesday, May 18, 2010 6:42 AM
To: CDT General developers list.
Subject: [cdt-dev] Difference between C and CPP nature.
Importance: Low

Hi All,

I have some doubts regarding project nature.

What is the difference between C nature and CPP nature?
CProjectNature and CCProjectNature.

Currently my plugins creates a project and adds c nature to it.
CCProjectNature.addCNature(Iprojectname, new SubProgressMonitor(monitor, 1));

To create a project (CPP), shall I add CC nature to it?
CProjectNature.addCNature(Iprojectname, new SubProgressMonitor(monitor, 1));

What if we add c nature to a CPP project?

Thanks in Advance.
Padam





Back to the top