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
24
votes
8 answers

With Eclipse: How to add include paths and libraries for all your C/C++ project

Is it possible to add include paths and libraries to all C/C++ projects? In others words: How can I make them global or copy one C/C++ project build setting to another one?
Walidix
  • 1,247
  • 5
  • 17
  • 27
24
votes
4 answers

Eclipse C++ formatter puts new line before method identifiers

I ran into a problem with the Eclipse formatter. It won't format my code correctly when declaring methods within a class declaration. It puts a new line after the method's return type. I already exported the style xml file and examined the…
Adam
  • 3,668
  • 6
  • 30
  • 55
23
votes
15 answers

OS X Eclipse C++ Launch Failed - Binary Not Found

I am quite troubled as this shouldn't be causing me such a headache. I've downloaded the most recent Eclipse Indigo and all CDT C++ plugins for MAC OS X 10.7.1/ Upon restarting after installing the above CDT plugins, I've developed a simple 'hello…
5k1zk17
  • 369
  • 1
  • 4
  • 11
23
votes
2 answers

eclipse c/c++ CDT build just one file

I'm doing a C++ project with eclipse CDT but It takes a lot of time building all the source files. I'd prefer just build the one source file which I'm working with until it's correct and later go ahead to the next source file. But all the options I…
Akronix
  • 1,858
  • 2
  • 19
  • 32
23
votes
8 answers

Eclipse complains: "Invalid overload of 'endl'" - but code does compile

I've written an operator<< for my templated class: template std::ostream& operator<<(std::ostream &strm, const MyClass &obj) and when I write cout << myClassInstance << endl; this compiles and runs, but my Eclipse CDT says: Invalid…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
23
votes
2 answers

Turn off eclipse errors (that aren't really errors)

Possible Duplicate: Disable Eclipse's error discovery. (Codan false positives) With GCC 4.8/Clang 3.3 C++ support so far ahead of what Eclipse is doing with syntax checking (in terms of feature support), Eclipse is marking many things as errors…
soandos
  • 4,978
  • 13
  • 62
  • 96
23
votes
3 answers

Disabling EGit in Eclipse-CDT Juno

This thread: How to disable EGit temporarily? discusses how to disable EGit in Eclipse, but when I go to "Startup and Shutdown", there is no option to disable EGit. How can I control what plug-ins are loaded in Eclipse-CDT?
Josh
  • 11,979
  • 17
  • 60
  • 96
22
votes
5 answers

Eclipse Indigo CDT: Function could not be resolved

This feels silly, but its been 2 days...somewhere after upgrading from Ubuntu 10.04 to 10.11 and from Eclipse Helios to Eclipse Indigo, I got stuck with the following problem: Problem Description: I'm trying to use a function in math.h called…
myk
  • 708
  • 2
  • 8
  • 20
22
votes
2 answers

Is it possible to attach a debugging session to a running program in eclipse CDT

I'm writing a netscape iplanet plugin (on solaris/C using eclipse) which is basically a shared object with specific entry points, and I'd like to be able to debug the shared object with eclipse's debugger (gdb). I remember doing something similar in…
stu
  • 8,461
  • 18
  • 74
  • 112
22
votes
3 answers

Passing End of Transmission (Ctrl + D) character in Eclipse CDT console

I have a C++ application, to which i need to send an End of Transmission signal. I can do a Ctrl+D on the console, but when I try that within Eclipse, it doesn't work. I am using Eclipse Galileo with CDT.
anon
  • 1,071
  • 2
  • 8
  • 19
22
votes
2 answers

How to cope with "intrin.h: No such file or directory"?

#include The above will report: intrin.h: No such file or directory Which seems to be a MSVC header file,but I'm using eclipse cdt,how can I make it available?Is there some libraries needed? cdt uses MinGW for compiling,but there is no…
Mask
  • 33,129
  • 48
  • 101
  • 125
22
votes
2 answers

How to install list of eclipse plugins from a script?

I need a way to setup a highly customized eclipse coding environment in a fully unattended way from a script in linux. The customized eclipse environment requires the installation of about 10 different plugins from various sources (protobuf, pydev,…
heathbar
  • 799
  • 5
  • 12
22
votes
6 answers

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 set up scons as a builder. (NOT using the…
nos
  • 223,662
  • 58
  • 417
  • 506
21
votes
8 answers

Eclipse 3.7.0 Indigo with CDT shows many false compilation errors

I have updated my Ubuntu box to 11.10 and then Eclipse also have been updated to 3.7.0 Indigo with CDT 8.0.1 Then the following problem occurs: I have included the vector header file but the compiler said that Symbol 'vector' could not be resolved.…
zonyitoo
  • 213
  • 1
  • 2
  • 5
20
votes
0 answers

Has anyone successfully used Eclipse CDT + Eclim + CDT4 Generator?

Has anyone successfully used these three together? I used CDT4 to generate my eclipse project files. With the GUI version, things work fairly well. Most features work. Although I have problems with external libraries. For some reason eclipse…
anoneironaut
  • 1,778
  • 16
  • 28