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
218
votes
17 answers

How to enable C++11/C++0x support in Eclipse CDT?

Eclipse 3.7.1 CDT 1.4.1 GCC 4.6.2 This is an example of a piece of C++11 code: auto text = std::unique_ptr(new char[len]); The Eclipse editor complains about: Function 'unique_ptr' could not be resolved The Makefile compilation works fine.…
Nick
  • 5,765
  • 5
  • 27
  • 36
211
votes
9 answers

Work on a remote project with Eclipse via SSH

I have the following boxes: a) A Windows box with Eclipse CDT, b) A Linux box, accessible for me only via SSH. Both the compiler and the hardware required to build and run my project is only on machine B. I'd like to work "transparently" from a…
Kos
  • 70,399
  • 25
  • 169
  • 233
128
votes
7 answers

undefined reference to `WinMain@16'

When I try to build a program using Eclipse CDT, I get the following: /mingw/lib/libmingw32.a(main.o):main.c:(.text+0x106): undefined reference to `WinMain@16 Why is that? And, how can I solve this issue?
Simplicity
  • 47,404
  • 98
  • 256
  • 385
107
votes
14 answers

"Unresolved inclusion" error with Eclipse CDT for C standard library headers

I set up CDT for eclipse and wrote a simple hello world C program: #include int main(void){ puts("Hello, world."); return 0; } The program builds and runs correctly, but eclipse keeps showing this yellow question mark by the side…
Derrick Zhang
  • 21,201
  • 18
  • 53
  • 73
94
votes
19 answers

How to force Eclipse to ask for default workspace?

I noticed that after installing cdt, Eclipse always loads the default workspace. The workspace listed in the config.ini in osgi.instance.area.default. Eclipse does not ask which workspace to open regardless if Prompt for workspace on startup is set…
michael nesterenko
  • 14,222
  • 25
  • 114
  • 182
92
votes
8 answers

Remove "Quick Access" entry in Eclipse Juno

How do I remove the "Quick Access" text entry from Juno's CDT toolbar? I never use it and it consumes valuable space on my laptop screen.
kyku
  • 5,892
  • 4
  • 43
  • 51
85
votes
8 answers

How to enable C++11 in Eclipse Juno/Kepler/Luna CDT?

EDIT: It turns out this really isn't specific to Eclipse Kepler. I had to use the same process for Eclipse Juno. The problem was that there seem to be missing steps in other posts answering this same question. I'm using Eclipse Kepler for C++ and…
user327301
  • 2,641
  • 2
  • 26
  • 33
78
votes
24 answers

Most useful shortcut in Eclipse CDT

I would like to make a cheat sheet presenting the most useful (and time saving) shortcut for Eclipse CDT (C++). Can you share what are the most useful shortcuts that you use in CDT? Please, post only general shortcuts (available when doing C++) or…
Symbiosoft
  • 4,681
  • 6
  • 32
  • 46
75
votes
13 answers

Launch Failed. Binary not found. CDT on Eclipse Helios

I'm using Eclipse Helios on Ubuntu 10.04, and I'm trying to install CDT plugin on it. I download it from here here. And then I go to Install New Software and select the zip file (I don't extract it, just select the zip file). And its ok, it…
rogcg
  • 10,451
  • 20
  • 91
  • 133
72
votes
4 answers

Install Eclipse JDT on top of CDT

I have the eclipse CDT installed, and I would like to install Java development functionality (JDT) on top of my CDT installation. I've been Googling from an hour but I can't figure out how to do this. What plugin do I need to install? What update…
HighCommander4
  • 50,428
  • 24
  • 122
  • 194
72
votes
12 answers

GCC C++ Linker errors: Undefined reference to 'vtable for XXX', Undefined reference to 'ClassName::ClassName()'

I'm setting up a C++ project, on Ubuntu x64, using Eclipse-CDT. I'm basically doing a hello world and linking to a commerical 3rd party library. I've included the header files, linked to their libraries, but I still get linker errors. Are there…
waterlooalex
  • 13,642
  • 16
  • 78
  • 99
71
votes
6 answers

Better variable exploring when debugging C++ code with Eclipse/CDT

Using Eclipse and CDT to debug C++ code the variable windows is cumbersome and not very informative for types defined in the standard template library or in boost (e.g. shared_ptr). Just an example how this may look like for an std::vector: bar {…} …
Danvil
  • 22,240
  • 19
  • 65
  • 88
67
votes
9 answers

Clean Eclipse Index, it is out of sync with code

I'm using Eclipse with C++ code via linked resources on Linux. The code analysis index seems to be corrupted (Goto definition lands the cursor close to, but not on, the definition) Refreshing resources doesn't fix it, neither does restarting…
Vincent Scheib
  • 17,142
  • 9
  • 61
  • 77
64
votes
15 answers

Eclipse CDT: Symbol 'cout' could not be resolved

The error is as above. I have what should be all the necessary files include in the eclipse project: /usr/include/c++/4.6 /usr/include /usr/include/linux /usr/local/include etc. I tried std::cout and using namespace std; cout but it still says…
Jeff
  • 1,251
  • 1
  • 12
  • 22
59
votes
7 answers

C++ Error 'nullptr was not declared in this scope' in Eclipse IDE

I am running Eclipse Helios and I have g++-4.6 installed. Hope I am not wrong that g++4.6 implements C++ 11 features. I have created a C++ project which uses the nullptr and auto keywords. The build gives the following…
Higher-Kinded Type
  • 1,964
  • 5
  • 27
  • 44
1
2 3
99 100