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
1
vote
1 answer

Passing arguments to a C++ program in Eclipse

I have a C++ program written using Eclipse CDT. This program needs arguments to be passed to it. How can I do that using Eclipse CDT? Thanks.
Simplicity
  • 47,404
  • 98
  • 256
  • 385
1
vote
0 answers

Eclipse CDT: Is it possible to define a tool in an Eclipse IDE that has no output?

We're using Eclipse as an IDE for our own development tools, and I'm trying to add support for an new tool that will process an executable file, but leave it with the same name (i.e. the tool won't have any obvious outputs). So, for example, if my…
1
vote
2 answers

Eclipse CDT: cannot resolve 'begin' and 'end' symbols in foreach-loop

The indexer of eclipse CDT does not properly recognize the 'end' and 'begin' symbols needed in a foreach loop whenever I want to directly iterate over data returned by a function. It works when I first put the result into a temporary variable. MWE:…
0xfull
  • 33
  • 6
1
vote
0 answers

C program on Mac's Eclipse says "symbol(s) not found for architecture"

I am doing my uni course by following the inscructions for Mac that were given on the uni website. This is what we are supposed to write: #include int main(void) { printf("C is cool!!!"); return 0; } This is what shows up in…
1
vote
1 answer

Generating the callgraph of mozilla-central- Error running Valgrind: Launch failed. Binary not found

I have downloaded mozilla-central (Nightly) and built it and I am able to open the project in Eclipse CPP and run the application. My goal is to have access to the call graph of one use-case scenario in Firefox. For instance, I would like to run the…
paparissam
  • 57
  • 9
1
vote
0 answers

How to write an ITranslationUnit to a file

There is no setPath function as a part of the translationunit. so how does one save it to another file? (a file different from the one it parsed) I have been able to parse a C++ file (in a java program outside of Eclipse using the jars) and get a…
Leo
  • 111
  • 7
1
vote
1 answer

Using Eclipse CDT with the Firefox Nightly code

I downloaded Mozilla-central and built it. I am able to run Firefox Nightly using ./mach run. Now I am following the instructions of MDN on how to use Eclipse CDT with Mozilla code. I downloaded Eclipse CDT on my mac and installed it. When I execute…
1
vote
1 answer

Eclipse plugin - add mouse listener to an editor everytime its opened

I am developing an Eclipse plugin and I need to store the click location in X and Y axis coordinates. So far, I am doing this by using the org.eclipse.ui.IStartup interface and using this in the class implementing it: @Override public void…
Cegy
  • 89
  • 10
1
vote
0 answers

Eclipse Photon CDT Qt5 Project Problems on Ubuntu 18.04

I am trying to use Eclipse to build a Qt5 Widgets app on an Ubuntu 18.04 virtual machine. I'm able to create a Qt project file (.pro) with Eclipse. However, when I try to build it I get an error, "Build not configured correctly." I'd really…
Jeffrey Harper
  • 748
  • 7
  • 7
1
vote
0 answers

Linked file in Eclipse not found by C files when building project

I created a linked file in eclipse, it was created fine and I can see it in the folder where I created it. However, when I go an build the project I get an error saying: fatal error: myfile.h: No such file or directory If I instead place the actual…
maverick
  • 31
  • 4
1
vote
1 answer

Eclipse CDT - gdb watch expression

I have been trying to use eclipse CDT to debug my C code. I see that unlike what gdb does, when a watch expression is added, the program does not break when the value changes(write). I also tried using "toggle breakpoints" from run option, it says…
Naveen
  • 413
  • 1
  • 5
  • 9
1
vote
0 answers

No binary built in eclipse cdt

I have a c++ project in eclipse cdt. source files are put in folder 'srt-lsh'. However, I can not build the project successfully. No Binary is shown after I hit the 'build all' button. When I try to run it, 'launch failed, no binary found' dialog…
Richard
  • 14,642
  • 18
  • 56
  • 77
1
vote
1 answer

Referencing external files in Eclipse: virtually linked files vs build settings in Project Properties?

There is information on the web as well as here on the topic related to the using external file resources in CDT Eclipse: C/C++ and H files located somewhere else in the files system. All the described methods run along two methods: creation within…
VladBlanshey
  • 113
  • 4
1
vote
1 answer

Is there a way to get Eclispe CDT to show you the compile results for the indexer?

I've read over tons of questions about the cdt indexer, and none of them get to the point. I've configured all of the preprocessor include paths and providers and all that and I have it all working. But there are some modules that the compiler is…
stu
  • 8,461
  • 18
  • 74
  • 112
1
vote
1 answer

Change/remove hover delay in Eclipse editor

I'm using Eclipse, and have set up my preferences so that editor hovers only appear when I press Ctrl by using the "Combined Hovers Keys Modifier" setting. However, when I Ctrl+Hover an item, I still have to wait for the hover delay. Is there any…
drmuelr
  • 955
  • 1
  • 13
  • 30