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
0 answers

Compiling avr c++ lib with Eclipse Photon CDT Core Builder

I'm trying to compile an Arduino lib I'm writing under Eclipse. This is the basic sketch sx.cpp I'm using, it compiles using standard Arduino IDE 1.8.0: #include #include void setup() { } void loop() { std::vector
Shine
  • 3,788
  • 1
  • 36
  • 59
1
vote
1 answer

Eclipse CDT plugin - action restricted to function name

Currently I am developing a plugin for Eclipse CDT. I have successfully made an action declaration in my plugin.xml file.
Cegy
  • 89
  • 10
1
vote
0 answers

MarkerSupportView in eclipse plugin raising "indirectly referenced from required .class files" error

I am facing the error "The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files" import org.eclipse.ui.views.markers.MarkerSupportView; public class CustomMarkerView extends MarkerSupportView { …
chaithu
  • 23
  • 5
1
vote
0 answers

How to install Eclipse Help Plug-in generated by Doxygen?

I used Doxygen to generate index files in addition to HTML files to produce a Eclipse Help Plug-in(plugin.xml and toc.xml). I zipped up all the HTML files into a doc.zip. I placed doc.zip, plugin.xml and toc.xml into a folder with the same name as…
Ramya Raj
  • 109
  • 1
  • 10
1
vote
0 answers

Visual Studio keymap for Eclipse is wrong

I tried setting the provided Visual Studio keymap in Eclipse, but the shortcuts just do not seem to match. For example, to comment current line / selection, the Visual Studio hotkey was CTRL+K,C and it does not work in Eclipse. EDIT: Also, in VS the…
PhantomR
  • 605
  • 4
  • 16
1
vote
1 answer

How to add -lstdc++fs in Eclipse C++ for filesystem?

Here is a demo filesystem-testing.cpp on c++ filesystem that works in command lines: env: gcc/5.5.0 #include #include #include int main() { std::string path =…
caot
  • 3,066
  • 35
  • 37
1
vote
0 answers

Eclipse CDT using std libraries in external console

I created C++ console project in Eclipse on Windows 7. I wanted it to run in external terminal, so I configured External Tool as described here: LINK. The following code runs fine and shows "Hello" on the console: #include #include…
1
vote
3 answers

Preprocessor Include Paths, Macros etc. entry not available

I can't navigate through a project in Eclipse (Oxygen.3a Release (4.7.3a) with CDT version 9.4.3.201802261533). The project is built successfully but I can't trace back many functions using ctrl+LMclick. I tried fixing the problem from online…
Ahmed Al-haddad
  • 805
  • 2
  • 16
  • 41
1
vote
1 answer

headless build with CDT using .cproject configuration

I have a eclipse project with .project and .cproject, and I want automate the building process, for it I use ./eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data /home/user/workspace/ -build App but it don't use…
user628377
  • 11
  • 1
  • 3
1
vote
1 answer

fatal error: Imlib2.h: No such file or directory, But I have this file

I have installed imlib2-1.4.5 and I have the file in /usr/local/lib path. Also I have created softlink for this package. When I use this in my project and load in eclipse ide, The above fatal error is found while compiling. I set the project…
Pops
  • 21
  • 4
1
vote
1 answer

Stepping problem in Eclipse CDT

I have created a custom toolchain and launch configuration to allow debugging on a remote target. I've got the debugging working so that I can step through each statement. However, the stepping doesn't always match up with the position in the code…
Alan Spark
  • 8,152
  • 8
  • 56
  • 91
1
vote
1 answer

Get a stack trace during an infinite loop with Eclipse CDT

I am working on a project using Eclipse CDT and am encountering what seems to be an infinite loop. When debugging an application from within Eclipse, I can easily retrieve and examine the call stack when the process terminates abnormally (segfault…
user149408
  • 5,385
  • 4
  • 33
  • 69
1
vote
1 answer

Include header file in abstract syntax tree CDT

Problem: I want generate function prototype if it doesn't exists, in the C file, I have done this, but in case if the prototype already exists in a header file it doesn't feel it, BTW I used CDT IIndex //C Code #include "test.h" //where it have bar…
Mostafa Hassan
  • 288
  • 1
  • 14
1
vote
0 answers

Eclipse cdt gdb: specify library to debug

I'm using eclipse cdt mingw 7.3.0 windows 10 for debugging the dynamically loaded dll. Problem is that program loads a lot of dlls and it takes minutes till gdb is connected to all of them, but I need only one. Is there a possibility to specify in…
1
vote
2 answers

How to suppress "Syntax error" in Eclipse 4.7.3a

This std::visit example is not understood by Eclipse CDT yet but it compiles fine with a C++17 compiler. I mean these lines: template struct overloaded : Ts... { using Ts::operator()...; }; template overloaded(Ts...) ->…
Peter VARGA
  • 4,780
  • 3
  • 39
  • 75