eclipse-cdt

setting flags to compiler from eclipse (with gcc)

孤街浪徒 提交于 2020-05-17 06:41:25
问题 It seems I'm still a newbie in eclipse, and I need to set some compilation flags to my ANSI C project with the gcc compiler. Such flags are for example.. -std=c99 -Wall -Wconversion -Wtype-limits -pedantic and some more. I remember not so long ago, I used to set that flags from a very intuitive interface with check-boxes and labels, but it is not any more there... for example in this link: Enabling flags (Wall, pedantic) for C/C++ compilation within Eclipse they are making a very similar

Debugging with Eclipse CDT and GDB: can't find source file

ぐ巨炮叔叔 提交于 2020-05-12 11:43:28
问题 When I try to debug my application using GDB from eclipse CDT, I get the following error: Can't find a source file at "../mingw/main.c" Locate the file or edit the source lookup path to include its location. Eclipse is looking for the source file location at ../mingw/main.c, but it should be in /edit/src/main.c. As you can see in the screenshot below, edit/src is part of the source lookup path. Why is looking in ../mingw? I can't find any configuration setting that makes it look there. I'm

Debugging with Eclipse CDT and GDB: can't find source file

◇◆丶佛笑我妖孽 提交于 2020-05-12 11:40:45
问题 When I try to debug my application using GDB from eclipse CDT, I get the following error: Can't find a source file at "../mingw/main.c" Locate the file or edit the source lookup path to include its location. Eclipse is looking for the source file location at ../mingw/main.c, but it should be in /edit/src/main.c. As you can see in the screenshot below, edit/src is part of the source lookup path. Why is looking in ../mingw? I can't find any configuration setting that makes it look there. I'm

Disable or skip parsing of some token in C/C++ language (Eclipse plugin, using CDT)

我只是一个虾纸丫 提交于 2020-04-30 06:24:28
问题 Following this question disable-syntax-error, I need something really similar. I have my set of eclipse plugins and I want to support my own language which extends C++ with some keywords and concepts. For example: int i = @$symbol; the identifier @$symbol is defined somehere else, and literally substituted from my custom compiler before the real C code gets to the C compiler. Now I need some basic guideline to what class override in CDT codebase, to get rid of "Symbol could not be resolved".

Code formatter inserts new line between type and function identifier, when I don't want it

好久不见. 提交于 2020-04-17 18:58:47
问题 Using Ubuntu 16.04, Nsight Eclipse 10.4, Eclipse C/C++ Development Tools 8.4.0.nvidia-qualifier. Working with C++ code. Aim I have created a new profile for the code formatter . Its intended outcome is correctly reproduced by the very IDE (Window > Preferences > C/C++ > Code Style > Formatter) Result However, when I format the source code accordingly, for example with Ctrl + Shift + F , the function signature is split into two lines. This is shown below in lines 30 and 31. This is undesirable

ERROR_DOWNLOAD_TASK_START_ISSUE on System Workbench STM32 Eclipse has not been resolved

醉酒当歌 提交于 2020-03-26 03:51:07
问题 I have the exact same problem as this question The problem is that when downloading the firmware for a STM model in System Workbench, the download fails with ERROR_DOWNLOAS_TASK_START_ISSUE The reason I post this question again is: 1)The answer given in that question only works for a particular STM model A mode general solution is needed 2) This question has been posted by many people having the same issue in the OpenSTM32 COmmunit forum. So far nobody has an answer, and apparently it is a

Disable Syntax Error “Symbol <id> could not be resolved” for some symbols in Eclipse Plugin using CDT

馋奶兔 提交于 2020-02-25 09:37:42
问题 In my eclipse plugin I want to support my tool's language which extends C++ with some keywords and concepts. My language class, editor class and source parser class are all inheriting CDT classes for C++. I can parse the keywords and add nodes for them to the AST. But some of my keywords/commands the editor will always mark as "Symbol could not be resolved". Example: There is a command "@result" wich returns the result of a last computation as an enum value that is defined in some header file

Running Eclipse-CDT on Ubuntu 18.04 causes java.lang.ClassNotFoundException

柔情痞子 提交于 2020-02-24 12:01:28
问题 I am running a Virtual Machine of Ubuntu 18.04 via Oracle VirtualBox. I need Eclipse (including cdt) for a c++ project. So I ran the following statement on the console: sudo apt-get install eclipse eclipse-cdt g++ Then I waited until it finished installing. Afterwards, I tried to run Eclipse, which caused the following error: An error has occurred. See the log file /home/matthias/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1540208856928.log So, I checked the log file. It says

ERROR_DOWNLOAD_TASK_START_ISSUE on System Workbench STM32 Eclipse

大憨熊 提交于 2020-02-06 08:08:36
问题 Trying to start a new project for STM32F446RE board for blinking LED. There is an error which restricts me from downloading the firmware. I tried downloading the firmware from STM website and pasting in SystemWorkbench Firmware folder in AppData . 回答1: One can download the zip file at http://www.ebuc23.com/s5/ac6/software/firmware/stm32f4_dsp_stdperiph_lib_v180.zip and paste the Zip file and the extracted file in C:\Users\User_Name\AppData\Roaming\Ac6\SW4STM32\firmwares and reopen Eclipse and

ERROR_DOWNLOAD_TASK_START_ISSUE on System Workbench STM32 Eclipse

北慕城南 提交于 2020-02-06 08:06:08
问题 Trying to start a new project for STM32F446RE board for blinking LED. There is an error which restricts me from downloading the firmware. I tried downloading the firmware from STM website and pasting in SystemWorkbench Firmware folder in AppData . 回答1: One can download the zip file at http://www.ebuc23.com/s5/ac6/software/firmware/stm32f4_dsp_stdperiph_lib_v180.zip and paste the Zip file and the extracted file in C:\Users\User_Name\AppData\Roaming\Ac6\SW4STM32\firmwares and reopen Eclipse and