Questions tagged [eclipse-cdt]

CDT is an Eclipse component that provides an IDE for C and C++. Use this tag for questions which are specific to CDT.

The Eclipse CDT project provides an IDE for C and C++ on top of Eclipse.

Features include: support for project creation and managed build for various toolchains, standard make build, source navigation, various source knowledge tools, such as type hierarchy, call graph, include browser, macro definition browser, code editor with syntax highlighting, folding and hyperlink navigation, source code refactoring and code generation, visual debugging tools, including memory, registers, and disassembly viewers.

Useful links

3342 questions
18
votes
8 answers

"No source file named" error debugging Eclipse CDT

I've got a project with a shared library (loaded dynamically), and I'm attempting to debug it. I get the following error message: No source file named /home/username/Code/path/to/project/MyFile.cpp. After having searched other threads, I've…
OrbitalDan
  • 305
  • 1
  • 2
  • 7
17
votes
3 answers

Eclipse CDT not building project on header file change

I have Eclipse Platform 3.7.2 and CDT 8.0.2. When I want to do 'Build All' headers from other workspace projects are not counted as dependencies, and nothing is rebuilt. I have a hello world application and a static library project. The static…
haelix
  • 4,245
  • 4
  • 34
  • 56
17
votes
3 answers

Eclipse kepler can't install updates

After downloading updates it shows a error that can't install updates . An error occurred while uninstalling session context was:(profile=epp.package.cpp, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall,…
Shervin Gharib
  • 728
  • 2
  • 14
  • 29
17
votes
1 answer

Eclipse - What is exactly a Builder?

I don't understand what is exactly a builder in CDT, and what is the relationship with the "C/C++ Build" content. I set up SCons in the "C/C++ Build" confuguration. It does work : I made two configurations (release and debug), and my SCons scripts…
Oodini
  • 1,092
  • 6
  • 11
  • 22
17
votes
1 answer

difference between this and this@entry?

I've recently started to use Eclipse-CDT and was curious about 'this' and 'this@entry' in the variables window in the debugging perspective. They both have the same memory address and look identical but then why include both? Is 'this@entry' meant…
D_________
  • 563
  • 5
  • 14
17
votes
1 answer

"Export" button in Eclipse CDT "Paths and Symbols" dialog?

On the Includes tab of the Paths and Symbols section of the Project Properties dialog in the Eclipse CDT, there is an "Export" button: The best documentation I have found says that this "toggles whether the selected include path is exported or…
Nick Meyer
  • 39,212
  • 14
  • 67
  • 75
17
votes
4 answers

Create an Eclipse project on the command line?

I would like to have a shell script create an entire CDT project on the command line and add it to a workspace. I'm willing to generate the .project and .cproject files myself, but I'd like something that would actually do the adding of the project…
Nathan
  • 1,218
  • 3
  • 19
  • 35
17
votes
3 answers

Developing JNI applications with Eclipse (Combined Java/C++)

Have anyone successfully managed to setup a combined Java/C++ project for Eclipse? What I am trying to do is quite simple; 1) Compile my Java sources 2) Run Javah to create the JNI interface 3) Compile all the C/C++ sources 4) Link native shared…
ointment
  • 173
  • 1
  • 1
  • 4
17
votes
2 answers

Debugging with Eclipse CDT and GDB

I have Eclipse CDT C++ application project that uses shared library. This library is compiled with debug info and its source is available at the right path. Now I try to debug my application with Eclipse and GDB. If I put breakpoints in my…
Algirdas
  • 351
  • 1
  • 2
  • 6
17
votes
2 answers

Unresolved in Eclipse, Ubuntu

Yes, it's this question again... Somehow, I cannot get this issue resolved. Believe it or not, I have experience with Eclipse but only for Java development. I have programmed in C++ using vi but not with Eclipse. I have installed: Ubuntu…
David Kaczynski
  • 1,246
  • 2
  • 20
  • 36
17
votes
3 answers

Eclipse CDT multithreaded debugging not-optimal - how does one run threads exclusively?

I know the answer to this, I'm putting it up here for others to see it If you use eclipse CDT, you probably understand that eclipse isn't a debugger, it's just an application front-end, specifically to GDB. So when debugging C++ programs, you're…
Adam Miller
  • 1,756
  • 1
  • 25
  • 44
16
votes
7 answers

Member declaration not found

I have worked on a C++ project using a regular text editor. Later, I imported all the files to Eclipse to make it debugging easier. In Eclipse a weird thing happens. It complains "Member declaration not found" even if I have included the header…
codereviewanskquestions
  • 13,460
  • 29
  • 98
  • 167
16
votes
6 answers

How to build current project only in Eclipse CDT on "Build project"?

I am working with Eclipse CDT and I want to build the current project only, not any referenced project. Is this somehow possible? The idea behind this is, that I want to distinguish between "Build Project" and "Build all projects" (in which case,…
Martin C.
  • 12,140
  • 7
  • 40
  • 52
16
votes
2 answers

Auto generate header files for a C source file in an IDE

I am trying to use Eclipse and NetBeans for programming in C (not C++). Is there a feature/plugin for them which automatically keeps the source and header files in sync? As in, when I implement a function in the source file, does it automatically…
user2698
  • 315
  • 1
  • 3
  • 8
16
votes
3 answers

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…
Oodini
  • 1,092
  • 6
  • 11
  • 22