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.
3,285
questions
0
votes
0
answers
31
views
Eclipse CDT and Visual Studio Code have different i/o behavior with the same code why is this? [duplicate]
//the code below from a tutorial is demonstrating the usefulness
//of the function getline() when entering strings with whitespaces.
#include <string>
#include <iostream>
int main()
{
...
0
votes
1
answer
33
views
Can not create 8051 project in Eclipse on Mac
I'm using macOS. I have downloaded sdcc for Mac and installed it followed INSTALL.txt inside the downloaded folder (simply copy it to Developer folder), and have Eclipse IDE for Embedded C/C++ ...
-3
votes
0
answers
45
views
Eclipse load library as C++
I am using the Yocto project for my device. I have added a third party code base written in C++ which uses CMake. It generates some .so files. I have added them to my SDK I can view them and make ...
0
votes
1
answer
10
views
How to set 2d CDT to alow interception of constraints?
I´m changing a 2D CDT terrain from constraints that don´t intercept to constraints that can intercept.
I changed:
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::...
0
votes
1
answer
29
views
eclipse: including a path outside of the project
Note: This is a follow-on question to the unanswered Eclipse Include Paths outside Project Directory, albeit with considerably more information.
In Eclipse, I want to add an include path that is ...
0
votes
0
answers
8
views
Eclipse CDT organize includes but don't add new ones
In Eclipse CDT I can organize my includes with several options as explained here. When I do this, it includes some system libraries that I don't want. I would like to use this to put the includes that ...
1
vote
0
answers
6
views
Managing unit test for Eclipse CDT
Eclipse CDT can produce a filename_test.cpp for each filename.cpp I write.
This is supposed to be used with some kind of unit test.
I have written a few tests using "Google test" (gtest) and ...
0
votes
0
answers
28
views
Eclipse for C/C++ Developers: Auto Build
In Eclipse for Java Developers, the whole project is built in the background every time any file is saved, which I find very convenient when compared to other IDEs.
Is there an equivalent in Eclipse ...
0
votes
0
answers
28
views
Eclipse Environment setup using Protocol Buffers (Protobuf)
Jetson Nano - Jetpack 4.5.1
G++ Version - 4.8
Protobuf Version - 3.0
I've been messing with a gstreamer framework and creating a custom plugin for it, and essentially I want to make a managing process ...
0
votes
0
answers
24
views
Eclipse combining applications
I have two applications. One I wrote and one that comes from a third party vendor. My application in written in C, theirs in C++. My project builds in two ways, within eclipse or with autotools ...
0
votes
0
answers
22
views
In Eclipse, can you have different sets of open files for different perspectives?
I'm using STM32CubeIDE, an eclipse-based IDE for embedded development. When I start a debug session it switches to the Debug perspective. During the debug session, various extra source files typically ...
0
votes
0
answers
57
views
Configuring default compiler settings in Eclipse IDE for C/C++
I am very new to Eclipse and I am currently running Eclipse 2022-03 with CDT 10.6.1 installed. I've been trying to setup the default C/C++ compiler flags for all projects but I do not understand how ...
0
votes
1
answer
13
views
Eclipse CDT: illegal virtual folder names?
I have created a CDT managed-build project with a list of virtual folders. Certain folder icons are "barred", which apparently means the enclosed files are excluded from the build (see Stand-...
0
votes
1
answer
30
views
How can Eclipse binaries search be configured to recognize .srec format?
I see that Eclipse CDT/Embedded has a capability to find binaries such as .elf, .bin, .exe... I was wondering whether this is configurable setting or not, since I would like it to add too the Motorola ...
0
votes
0
answers
16
views
'Cross compiler prefix' and 'cross compiler path' on Eclipse (MX Linux)
so I am an ex-JS user trying to start fresh in C/C++, which meant I had to install a new IDE (eclipse) and start using the compiler that came with the OS. However, when I opened eclipse it asked me to ...
0
votes
0
answers
36
views
Eclipse C++ Build error: undefined reference to `WSAStartup@8', but program compiles correctly using "-lws2_32" in cmd window
I have a project that perfectly compiles in VS and from command line. However, in Eclipse (C++) I get the following error:
C:\Users\Lukas\AppData\Local\Temp\ccHNeQ9u.o: In function `main':
C:\Users\...
0
votes
0
answers
6
views
Not breaking at Breakpoint when Debugging when using CDT-GDB in Theia CDT
When I try to use cdt-gdb-vscode to achieve debugging of cpp files in Theia with GDB, the code doesn’t break at breakpoint, the breakpoint is faded and when I hover over a message saying r -break-...
0
votes
1
answer
40
views
Eclipse throwing "Unresolved inclusion error" on standard includes like "stdio.h"
After installing Eclipse freshly on Windows 10, I imported code to work on, but Eclipse started throwing the error "Unresolved inclusion error" on standard libraries like stdio.h and stdint....
0
votes
0
answers
63
views
How to add Paho MQTT client to a C application in Eclipse toolchain
I'm trying to figure out how to add functionality to a vendor's provided sample C application that is built with Eclipse, and I'd like to check if I'm on the right path. I can build their sample C ...
0
votes
0
answers
44
views
Eclipse - set the C++ standard
ALL,
I'm worjking under RHEL 8 with the latest (2021-09) Eclipse version 4.21.0.
I'd like to set a C++ standard to be c++11, since I need a compatibility with the RHEL7.
I tried to follow instructyion ...
0
votes
0
answers
9
views
Eclipse CDT: Console view not automatically activated when building
When double clicking on a build target, the command (make all) is actually executed, as usual.
But since about a week ago, the Console view is not automatically activated (as in the default behaviour, ...
0
votes
0
answers
8
views
Eclipse CDT - Set include directories globally
I know I can add directories to search for includes, for each project.
Is there any way to add them globally, i.e., for any project (currently existing, or to be created)?
0
votes
0
answers
31
views
How to tell Eclipse CDT Clang Formatter to take settings from customized `.clang-format` file?
I am using the Clang-Format code formatter in Eclipse CDT.
I have set the executable path under
Window->Preferences->C/C++->CppStyle:
Clang-format path: /opt/clang/11.0.0/bin/clang-format
...
0
votes
0
answers
24
views
Eclipse 2021-12 ignore breakpoints into C++ lambda fuctions
I use Eclipse 2021-12 at Ubuntu 21 for make C++ develop.
In debug mode (use gdb) Eclipse ignores breakpoints into lambda functions. Debugger stops at [] and does not go inside the lambda function. So ...
1
vote
0
answers
18
views
eclipse C++ - check if one file is indirectly included by another file
I know how to use the include browser but I have many levels of includes.
How do I check if a certain file is included by another one (even indirectly)?
1
vote
0
answers
49
views
Set C compiler in a C++ project
ALL,
I have a C++ RHEL8 project and we use Eclipse as an IDE.
However some files here are written in pure C (dissectors) and there fore has to be built with the C compiler.
Is it possible to tell ...
0
votes
0
answers
25
views
How should I add Include File to my Eclipse Project(Cpp, see image)
I remember somehow adding the include file, and then thought it would be automatic. It wasn't. So how do I add it again and make it automatic?
0
votes
0
answers
33
views
EOF (Ctrl + D) NOT working when debugging in Eclipse CDT console (year 2022 !!)
February 2022 I'm Using Eclipse 2021.12 + CDT 10.5 + Ubuntu 20.04
Time is passing .. but I'm STILL facing the SAME problems mentioned in 10 year ago messages, with debug of CDT from the console...:
...
0
votes
0
answers
31
views
Differences between Eclipse Indigo and Eclipse 2021
Since years I use Yagarto with Eclipse CDT Indigo. In a virtual machine on XP. I tried now Eclipse 2021 on Win 10. Copy Yagarto, AT91LIB and the projects. Replaced msys-1.0.dll in Yagarto Tools. Set ...
0
votes
1
answer
19
views
Eclipse debug Alsa
I am trying to add alsa library to my Eclipse in order to cross-compile and debug in my iMX8X.
I have cross compiled the alsa-lib by
./configure --host=aarch64-unknown-linux-gnu --with-pcap=linux
I ...
0
votes
0
answers
65
views
Multiple core debugging with J-link in Eclipse
Working in an FPGA which has two ARM968ES. Also working with one Segger J-link.
JTAG is correctly configured as a chain. J-link.exe reports two CPU's in the expected way.
Now to eclipse. I want to ...
0
votes
0
answers
147
views
Xilinx SDK 2018.3 Linker error although libraries exist, "undefined reference"
The situation
I am following the course "Introduction to Deep Learning with Xilinx SoCs Technical Training Course" for the Ultra96v2 board and reached Lab No. 5.
The error message
I am able ...
1
vote
0
answers
48
views
Work on Windows - build on linux and docker
I have a project that want to build inside a docker on a linux machine.
So my setup is that I have the Eclipse CDT IDE installed on my Windows machine, and I have my source code on my machine as well.
...
0
votes
0
answers
57
views
How can I programmatically set the "Type" in the Eclipse Problem view?
I am working on a custom error parser in Eclipse that works with C/C++ projects. A lot of the errors/information messages that pass through the parser are not truly C/C++ related but are an artefact ...
0
votes
0
answers
31
views
In eclipse after run its doesn't show anything in consol [duplicate]
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int a;
printf("Enter a number");
scanf("%d",&a);
printf("Your number is %d",a);
...
0
votes
0
answers
24
views
Eclipse CDT debugger terminates when array is expanded in Variables window?
I have a problem when debugging arrays in Eclipse CDT on Ubuntu.
I run an executable, hit a breakpoint, then I go to "Variables" window to look into local variable values. However, when I ...
5
votes
0
answers
209
views
Why are the headers not found in the Xilinx SDK?
I am following the course "Introduction to Deep Learning with Xilinx SoCs Technical Training Course" for the Ultra96v2 board and reached Lab No. 5.
I am able to follow along until I am ...
2
votes
0
answers
76
views
Integrating a library in eclipse stops the debug exe from running as expected
I am trying to set up a C project with cmocka unit test framework in eclipse.
Following software is used:
Windows 10
gcc 9.2.0
cmocka 1.1.0
Eclipse cdt 4.22.0
I create a new default Hello World ANSI ...
0
votes
1
answer
57
views
Eclipse / CDT auto-indent on new line only incorrect for structs?
Using new Eclipse and CDT versions built into STM32CubeIDE. I have the built in formatter options adjusted and use clang-format as my main beautifier. Everywhere I can see in the Window >> ...
0
votes
1
answer
18
views
Using xerces in Eclipse cdt produces linking error
Building C++ app using xerces, here is where it worked, on the build part
g++ -I/usr/local/include/xercesc -O0 -g3 -Wall -c -fmessage-length=0 -v -MMD -MP -MF"mypoject/xercesserver.d" -MT&...
0
votes
0
answers
26
views
Programmatic method of adding a CDT Error Parser to Eclipse
I can successfully add an error parser to my set up manually - go to workplace settings, add a parser, configure it (i.e., add appropriate regular expressions) and then go to project settings to add ...
0
votes
1
answer
24
views
Eclipse CDT formatter lines up columns with macros incorrectly?
Background
Using STM32CubeMxIDE 1.8 (Eclipse® 2021-03 and CDTTM version 10.2.0). I've adjusted to a custom formatter with Window >> Preferences >> C/C++ >> CodeStyle >> ...
1
vote
1
answer
51
views
Add mapnik library to eclipseC++
I downloaded and built mapnik library with vcpkg after that I tried add the mapnik to eclipse.For GCC C++ compiler Include :"/home/ubuntuc/vcpkg/packages/mapnik_x64-linux/include" and for ...
0
votes
0
answers
228
views
Debug C++ in Eclipse, error: Failed to execute MI command: Error from debugger back end: dwarf2_find_location_expression: Corrupted DWARF expression
I am debugging in Eclipse with C++. I set a breakpoint on a line of code inside a function in which an object is created inside this function. I stepped over this line to the next line and ...
0
votes
0
answers
88
views
How do you include/link libraries to an executable file Eclipse c++
I am trying to distribute an executable file from a c++ project I made in eclipse. The problem is, it uses the SDL2 and SDL2 Image libraries which works fine on my computer since they are downloaded ...
0
votes
1
answer
75
views
Use of custom make in eclipse IDE for C project
I already have a makefile project in C. There are multiple makefiles that are used through the command line to help automate the build process as multiple folders are available in the project.
How can ...
0
votes
1
answer
40
views
unable to compile googletest in eclipse
I am trying to compile googletest (git clone https://github.com/google/googletest.git -b release-1.11.0) but keep getting 1000+ linker errors.
I am running windows 10, eclipse CDT (latest), mingw (...
0
votes
0
answers
71
views
Using include <string> and using namespace std; but string still breaks my program
I'm following a tutorial for beginner C++ (https://www.udemy.com/course/free-learn-c-tutorial-beginners/learn/lecture/1368442#overview) and they very neatly wrote string text1 = "Hello" and ...
0
votes
0
answers
65
views
Import an existing makefile project into eclipse
I am a newbie to Eclipse. I have get a c project source code and I am going to open it with ellipse.
I use the following version of eclips and CDT:
Eclipse IDE for C/C++ Developers (includes ...
0
votes
0
answers
38
views
How to hide eclipse welcome page banner
I am trying to customize the welcome page provided by default implementing a new eclipse plugin, using the extension point:
<extension point= "org.eclipse.ui.intro">
<...