3,330 questions
1
vote
0
answers
46
views
Enabling Code Templates on Eclipse CDT (LSP)
With (old) Eclipse CDT we could define templates under Preferences > C/C++ > Editor > Templates which could be inserted into the code using CTRL + SPACE shortcut.
After upgrading to C++20 I ...
0
votes
0
answers
47
views
How to get xPack LLVM clang working with Eclipse on Windows10?
On Wondows10 I have installed:
xPack tools including
@xpack-dev-tools/arm-none-eabi-gcc
@xpack-dev-tools/clang
@xpack-dev-tools/cmake
@xpack-dev-tools/openocd
@xpack-dev-tools/qemu-arm
@xpack-dev-...
2
votes
0
answers
58
views
How do I stop the Eclipse C/C++ formatter from de-indenting when I formatting a second time
I'm using the Eclipse C/C++ formatter and run into an issue where it removes indents on line wrapping on the second save. For example I'll write some code:
int array[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
...
1
vote
0
answers
57
views
How to properly configure Eclipse to navigate the systemd project?
I have downloaded the sources of systemd: https://github.com/systemd/systemd
and am trying to configure Eclipse to eliminate the errors in the source files and to be able to navigate between functions ...
2
votes
0
answers
69
views
Eclipse C/C++ how to find variable belongs to which struct quickly
In a large C header file where defines many struct, like following,
struct s1 {
...
};
struct s2{
int var_1;
int var_2;
int var_3;
...
int var_200;
...
int var_500;
};
struct s3{
...
0
votes
0
answers
225
views
How do I get GDB to work with MacOS 15.3 and Eclipse?
I was working with Eclipse and C++, using a configuration for Vulkan with the GNU toolchain, and I decided to try compiling in release mode. At this point, my debug configuration was working. I got my ...
0
votes
0
answers
49
views
Why is gdb launch on Windows extremely slow
The gdb version used is embedded in STM32CubeIDE, a customized version of the Eclipse IDE.
The problem appears to be in the gdb launch: trying to execute even from the command prompt, positioned in ...
0
votes
0
answers
54
views
Eclipse Language Server Shows "Write Occurrence of var" Instead of Type Information on Hover
I'm working on a simple C++ project in Eclipse using the CDT language server. My code includes a basic template class, but when I hover over an auto variable deduced from a template method, the ...
0
votes
0
answers
54
views
Eclipse CDT: cross build with docker?
I wish to come through a massive limitation of cross-compiling:
Every single time I update my OS, it generates a newer binary requiring higher GLIBC version which is not able to run on my target ...
0
votes
0
answers
26
views
eclipse CDT cython error:pycore_atomic.h:38:32: error: ‘memory_order_relaxed’ undeclared here
my configuration like this:
ubuntu 24.04
gcc 13.3.0
eclipse CDT 11.6.1
When running this:
/data/py_envs/bin/python /data/Software/IDE/eclipse/plugins/org.python.pydev.core_12.2.0.202409031913/...
1
vote
0
answers
22
views
Eclipse Setup issue with include library
On MacOS using Eclipse with g++ and c++17 dialect.
When trying to build my project there is an issue with the library.
The library isnt found, which in turn doesn't let me include basic headers such ...
1
vote
0
answers
47
views
An error problem about using eclipse CDT to debug C language in Ubuntu system: Can't find a source file at "./stdio-common/./stdio-common/printf.c"
The following problem occurs when using eclipse CDT to debug C language in Ubuntu system:
Whenever debugging enters the print line, an error program appears, causing debugging to be interrupted. As ...
1
vote
1
answer
476
views
How to generate a readable report from the xml output of Cppcheck/Cppcheclipse?
I am using Eclipse CDT for embedded development. I installed Cppcheck and the Eclipse plugin cppcheclipse for static analysis. When I run cppcheck in the IDE it generates xml data in the console.
I ...
0
votes
1
answer
53
views
Eclipse 2023-09 indexer failing to validate "map" template arguments using MinGW (MYSYS64-11.2.0 version) but compiling/linking properly
The project was moved from Eclipse 2020-12 to Eclipse 2023-09 and the indexer works fine in the 2020 version. It compiles in both versions.
All the other standard containers (vector, list, etc) are ...
1
vote
0
answers
18
views
Eclipse auto format: C indentation setting of #define as function call parameter
when using the Eclipse auto format feature in C function calls the identation is messed up for me when I'm using a #define as function parameter. On the first hit of the auto format everything looks ...
1
vote
0
answers
104
views
Build issue in my STM32-NUCLEO project using the Eclipse IDE
I am reading Mastering STM32 by Carmine Noviello and got to the chapter where I am about to work on the hello-nucelo project. I followed everything to the letter and still got the following error (see ...
1
vote
1
answer
539
views
Problems setting up an AVR MCU programmer in Eclipse 2024-03
I installed Eclipse 2024-03 with the plugin to manage AVR MCUs. But when I try to indicate which MCU programmer I intend to use, using the Windows->Preference->AVR window, although I can see ...
0
votes
1
answer
130
views
Eclipse C, OpenSTM32 Systems Workbench: Errors running builder 'CDT Builder' on project
I'm trying to run some example code for the with the DWM3000EVB board and STM32F429ZI Nucleo board. I'm working with a M1 mac (not sure if this matters).
The API for the DWM3000EVB module:
https://www....
0
votes
0
answers
28
views
How to prevent Eclipse CDT from compiling / building again?
I use Eclipse 2023-12 and CDT 11.4.
I experience the following behaviour:
After I compiled a single file I start building the whole application, then it will always compile the just compiled file ...
0
votes
1
answer
98
views
Storing Eclipse Launch Configurations in Git
I'm building out some embedded tooling using the Espressif ESP-IDE (mostly based on Eclipse-CDT set up to use their toolchain). I've got enough run and debug configurations that I'd like to be able to ...
0
votes
0
answers
180
views
Why does Eclipse complain about this use of C++ templates? [duplicate]
In Eclipse, I’m looking at code which is essentially the same as the example posted in the codereview.SX question “C++17: Boost.Hana based compile-time plugin registration”, just condensed into one ...
1
vote
1
answer
205
views
Is there a way to syntax highlight constexpr variables in Eclipse CDT?
When I create an enum, the members of it are in blue and italics in my code. I would like something similiar for a constexpr variable (C++ 14 or later). Is that possible somehow?
0
votes
1
answer
64
views
Parse value defined macro in C header file using Java CDT parser
For example, I have a header.h file which has a few value defined macro:
#define MACRO1 value1
#define MACRO2 value2
I would like to parse these macros using Java CDT parser and store its name as ...
1
vote
1
answer
181
views
Eclipse flags C++ string literal as "Invalid Argument"
After moving all my code to a new M2 MacBook, my old Eclipse 4.17 (2020-09) now flags string literal arguments as "Invalid Argument".
I've since updated to the latest Eclipse 2023-06/AArch64&...
1
vote
2
answers
166
views
Eclipse: Build variable as string in C code
I try to use a build variable as a string in my C preprocessor code to make a compiler switch.
Build variable:
VER: A
Preprocessor/Defined Symbol:
VER=${VER}
Code:
#if VER == 'A'
#define VERSION (1)
#...