Understanding the Eclipse CDT projects
NickName:Oodini Ask DateTime:2010-02-12T20:55:35

Understanding the Eclipse CDT projects

I want to commit my CDT project to SVN. I am a newbie regarding CDT, and I'd like to know the files describing the project.

The concerned files seem to be :

.project .settings (directory) .cproject .csettings (directory)

What are the purposes of .project and .settings ?

.project just include references to XML files stored in the .csettings directory. Some of my co-workers on other projects don't have this .csettings directory : everything is in the .cproject file. Are there some project properties which could make Eclipse delegates all the CDT settings in XLM files in the .csettings directory ?

And what about .csettings ?

Extra question : what is the .directory ?

Copyright Notice:Content Author:「Oodini」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/2251879/understanding-the-eclipse-cdt-projects

Answers
sathish 2012-08-30T16:42:33

.CPROJECT: This will contain all the settings provided for the particular selected Toolchain. For example, if the project needs to be created with gcc, then this .cproject file will contain all the compiler, linker options used by gcc. \n\nAlso if any boot-able files located within the project needs to be excluded that too will be specified here. In general it acts as a make to your project.\n\n.PROJECT: Eclipse uses inbuild make file for linking the object files. This .project file will contain all the builder information (managebuilder).\n\n.SETTINGS: This will contain the debugging information's for the selected toolchain. Like how the \"COMPILER\\ASSEMBLER\\LINKER\" includes are separated, eg., by means of \";\" like that.",


crazyscot 2010-02-24T12:32:09

.project is where Eclipse starts whenever it opens up the project: it tells the workbench what plugins are needed.\n\n.cproject contains the settings specific to the CDT: your project's choice of build configurations, toolchains, individual tools and so on.\n\n.settings can be used by individual plug-ins to store their own project-level preferences.\n\nI've never come across .csettings...",


More about “Understanding the Eclipse CDT projects” related questions

Understanding the Eclipse CDT projects

I want to commit my CDT project to SVN. I am a newbie regarding CDT, and I'd like to know the files describing the project. The concerned files seem to be : .project .settings (directory) .cproje...

Show Detail

Eclipse CDT not generating symbols for new projects

All new projects I create in eclipse lack any automatic includes (such as the standard library) or any of the default Paths and Symbols that are usually generated automatically. The only way I can ...

Show Detail

Eclipse CDT global settings (for multiple projects)

I would like to use Eclipse CDT for C++ developement. I'm working in a small team. Our project consists of multiple shared libraries and executables. I know I have to create one project per library/

Show Detail

No breadcrumbs support for eclipse-CDT?

I'm so used to working with Eclipse for java related projects that I thought I'd work with Eclipse CDT for C-projects too. 'Show in Breadcrumbs' was a nifty little feature that would show what meth...

Show Detail

Eclipse CDT syntax error but still compiles

I've installed the latest MinGW (8.1.0) and have tested with Eclipse Neon and Photon #include <iostream> #include <unordered_map> int main(){ std::unordered_map<int,std::string...

Show Detail

Creating projects in sub-folders [eclipse CDT]

I am using eclipse CDT for creating the projects. I am creating a workspace and have to create projects in sub directories + workspace | +--+ level 1 (folder) | | | +-- project 1...

Show Detail

How to build SCons projects with Eclipse CDT?

We have a fairly large C/C++ project using scons for the building. I'd like to go at an attempt to build this through Eclipse-CDT. Anyone have any experience with this and can tell me the steps to ...

Show Detail

Packages in Eclipse/CDT

Is it possible in Eclipse to have some kind of packages (sets of projects) when using CDT projects? We have separated our software in such packages and use VS2005 with .sln files for the Windows p...

Show Detail

More inside an IDE(eclipse cdt)

This is what I see in the Console when I clicked Project->Clean menu: g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\hw.o ..\src\hw.cpp g++ -ohw.exe src\hw.o But I've no idea how is these command

Show Detail

How to build projects in parallel using Eclipse/CDT (not parallel compiling!)

I have several projects which all rely on a basic library. Now when I change a header file in this basic library I have to rebuild all dependent projects. Currently Eclipse/CDT builds one project a...

Show Detail