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
29
votes
2 answers

Eclipse-CDT: How do I configure the debugger to stop on an exception?

This might be a GDB question.. but I'd like to run my app in the debugger and have the debugger break when an exception is thrown, so I can see where the code is and what its doing at that time. I do this often in Visual Studio using the Debug ->…
waterlooalex
  • 13,642
  • 16
  • 78
  • 99
28
votes
4 answers

Any way to stop Eclipse CDT build?

I'm attempting to build a project in Eclipse CDT and the build process fails early on, but then takes minutes to finish computing and finally quit. How, through the Eclipse IDE, can I stop the build process. I know there must be some way because…
JnBrymn
  • 24,245
  • 28
  • 105
  • 147
28
votes
4 answers

Eclipse-C++-Debugging: see content of an Array

Is it possible to see the content of a dynamically allocated array, as in: int *array = new int[dimension]; I only see the value of the pointer. edit: just found the option "display as an array", but I always have to manually enter the size of the…
brandstaetter
  • 932
  • 3
  • 13
  • 30
27
votes
6 answers

How to build a c++ project on a remote computer in Eclipse?

I have a Windows pc with Eclipse Ganymede installed, and a Linux pc where my C++ project files are located. I use Eclipse to edit the files through SMB, and would like to build the project using Eclipse as well. Currently I connect using putty to my…
r0u1i
  • 3,526
  • 6
  • 28
  • 36
27
votes
3 answers

Completely exclude certain directories from Eclipse CDT project

I am working a C++ codebase that is built & run outside Eclipse. I made an Eclipse project out of it where I just use Eclipse for browsing/editing the code. However, I can't figure out how to completely exclude certain directories like build/ from…
user674669
  • 10,681
  • 15
  • 72
  • 105
26
votes
13 answers

How can I get Eclipse to index an entire C/C++ source tree that contains multiple "make projects"?

I'm having trouble getting Eclipse to index my source code. I'm using Eclipse Helios on Windows XP at the moment. I have a directory called src. Within it, I have a bunch of dirs, something like this: src -include (common headers) -lib …
Gordon
  • 1,210
  • 5
  • 16
  • 23
26
votes
5 answers

Can't find the tool settings in Eclipse CDT

I am looking to add a few libraries to Eclipse CDT (latest version 8.2). However under the project -> properties -> c/c++ build -> settings....There is no tool settings tab where I can configure my include files and the linker like I see with so…
TeddyG
  • 561
  • 3
  • 10
  • 17
26
votes
15 answers

Eclipse indexing not working

I am using CDT in Eclipse 3.5.2 Galileo in Ubuntu. My eclipse's indexer doesn't work at times. By that I mean when I ctrl click a function it says Could not find symbol in index. Also, F3 button click results in the same error message. Actually…
liaK
  • 11,422
  • 11
  • 48
  • 73
25
votes
4 answers

How to restore Eclipse Welcome Page?

My standard Eclipse "Welcome Page" is blank. How do I restore this page so that it shows the original links? The welcome page for the Eclipse CDT (C/C++ Development Tooling) will display. All of the help sections are still accessible. Here are some…
Richard Povinelli
  • 1,419
  • 1
  • 14
  • 28
25
votes
1 answer

Changing Project Type from "Executable" to "Static Library" in Eclipse CDT

Is there a way in the Eclipse CDT gui to change a project type after you have created it? I initially created a new C project in CDT as an executable on error. I would like to convert this project to a static library. Any thoughts?
JonnyB
  • 335
  • 1
  • 3
  • 13
25
votes
6 answers

Remotely debugging a Linux process from Windows with gdb and gdbserver: what exactly is needed on the Windows side?

I am running Eclipse CDT on Windows to develop C code that is built & tested on remote Linux systems. Currently, the code is never compiled on Windows. I am able to use CDT to begin the remote process on the Linux target under gdbserver, and then…
rewbs
  • 1,958
  • 4
  • 22
  • 34
25
votes
12 answers

Why does Eclipse CDT ignore breakpoints?

My problem is that I set some breakpoints in my code and some of them aren't working. In some places it complains about "Unresolved Breakpoint". Does anyone have any clue why this is happening? I am using gdb, by the way. EDIT: Yes, of course is…
Pablo Herrero
  • 1,724
  • 5
  • 18
  • 23
25
votes
5 answers

Eclipse keeps crunching while "updating rpm packages proposal list"

I've recently installed Eclipse Kepler CDT on a Win7 64 machine. It runs fine (well, sort of), but - it keeps crunching, with the status bar saying Updating RPM packages proposal list Why is this happening and how can I make it stop?
einpoklum
  • 118,144
  • 57
  • 340
  • 684
24
votes
3 answers

Customizing inclusion guards in eclipse CDT

Is there a way to customize the format of inclusion guards in eclipse CDT for the class generation template? The current format is _H, but what I would like is something like ___H. Not that I expect to…
cheshirekow
  • 4,797
  • 6
  • 43
  • 47
24
votes
3 answers

How to best handle data files with CMake?

I've got a CMake project that contains code and a few data files (images to be precise). My directory structure is like this: src data src contains the source code, data the data files. CMake suggests out of source builds, so when I invoke make, I…
theone
  • 243
  • 1
  • 2
  • 4