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

Merge different Eclipse packages

The Eclipse project offers several download packages, each focused on some set of languages and/or execution platforms: C/C++, JS web development, Modeling tools etc. Now, Eclipse is basically a single platform with multiple plugins / combinable…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
1
vote
0 answers

CreateProcess error=193, %1 is not a valid Win32 application in Eclipse CDT

I'm using Eclipse CDT in Windows. I have imported a project which needs to be run by a .sh file. I built the project first, and as you can see in the picture linked below, the file tcas.exe is in the Debug folder. I have a script file named…
1
vote
0 answers

How to include a single resource from a filtered folder in Eclipse

Eclipse has exclusion filters that can be used to remove things from the workspace that the user doesn't need (a build folder for example). It also has include filters that can be used to add only things that match the filter. Exclude filters trump…
Carcophan
  • 1,508
  • 2
  • 18
  • 38
1
vote
1 answer

Hiding false noreturn syntax errors in Eclipse CDT

Eclipse CDT doesn't know about the _Noreturn keyword and shows it as a syntax error. A suggested workaround is to add an empty preprocessor macro entry to the CDT User Setting Entries, but apparently this has to be done in the project settings for…
dpi
  • 1,919
  • 17
  • 17
1
vote
0 answers

unexpected getc(stdin) waiting at reading the last character of a file before the EOF

My application is built with Eclipse CDT Neon (4.6.2RC3) and gcc (Debian 6.3.0-18) 6.3.0 20170516 #include #include int main() { for (int i = 0;;i++) { /* Loop through characters. */ int ch; ch =…
lalebarde
  • 1,684
  • 1
  • 21
  • 36
1
vote
1 answer

How to allocate an input file instead of the stdin in an Eclipse CDT application?

My application is a simple executable used from the command line and takes stdin as input and stdout as output, so it behaves like many GNU tools. To test it, I want to set up an Eclipse CDT DEBUG Configuration to pass a file to stdin and another…
lalebarde
  • 1,684
  • 1
  • 21
  • 36
1
vote
1 answer

How to get the list of files open in active eclipse editor window in eclipse?

Interest is to get list of opened files in eclipse cdt editor. Lets say aaa.c, bbb.c, ddd.c are the files opened in eclipse editor. How to get the IFile[] for these files.
1
vote
0 answers

Can Eclipse run a command after build is finished?

I have a nice notification tool – it displays text under prompt of all active shells (Zsh): https://asciinema.org/a/156726 I want to notify "Build finished", ideally with additional information "... with 0 warnings 0 errors", maybe also with project…
One Other
  • 43
  • 5
1
vote
0 answers

Eclipse PDE CDT "template.xml" configuration

I'm currently trying to develop a template Plug-in for CDT (C/C++ Development Tooling). The goal is to simply get the needed project structure directly via "New Project" without copying and renaming Files manually. The Documentation seems to be…
1
vote
0 answers

eclipse CDT g++ unable to link minimodem c code in c++ project

I am trying to compile a c++ project in Eclipse CDT with third party C project (minimodem https://github.com/kamalmostafa/minimodem), Currently my project simply contains a few cpp files and folder inside the source folder with C files. I have…
user482963
  • 342
  • 6
  • 17
1
vote
1 answer

How to access the ICElements of local variables(variables inside function) and variables in header file?

Objective is to access the elements of C-file in eclipse to check customized naming rules for C-elements(global variable, local variable, function declarations). Tried to access the C-file elements as mentioned below. In this case, only able to…
1
vote
1 answer

How to extend IDocumentListener in eclipse for creating plugin?

I am trying to create a plugin which monitors the change in a document. I am interested in adding a marker in the text editor when the document is changed. I observed that for the class - IDocumentListener the method documentChanged is getting…
1
vote
1 answer

Eclipse CDT and MinGW-w64: "update" MinGW-w64 for use with existing Eclipse projects

I have several Eclipse C++ projects that use the MinGW-x64 version 6.3 just fine, but now I want to upgrade to a newer gcc compiler. I downloaded and installed the 7.3 version from MinGW-builds and I noticed that it installed in the C:\Program…
ThomasMcLeod
  • 7,603
  • 4
  • 42
  • 80
1
vote
1 answer

How to extend IErrorParser in eclipse to define own syntax checking?

My intention is to have own naming rules in eclipse editor for C programming Ex: a function should start with File name, it shall contain maximum of 20 character- FILENAME_MaxOf20Char(). When it is violated has to show an warning. To do this tried…
1
vote
3 answers

Undefined reference error with Eclipse (C++)

I have been learning C++, and have been using some test code to debug pieces of a much larger project. I am trying to use an object from another file, but I keep getting an undefined reference error despite having included the appropriate header…