eclipse-cdt

Eclipse CDT clean fails on Windows: tries to run rm -rf

放肆的年华 提交于 2019-12-20 01:42:02
问题 I am using Juno with CDT on Windows 7. When I try to clean a project using the internal builder or make provided by MinGW, Eclipse runs the *X command rm -rf and the clean operation fails. Log using external builder (mingw32-make) from the console: 18:08:07 **** Clean-only build of configuration Debug for project threads_example **** mingw32-make clean rm -rf ./main.o ./main.d threads_example process_begin: CreateProcess(NULL, rm -rf ./main.o ./main.d threads_example, ...) failed. make (e=2):

Eclipse: Storing info in .project file

為{幸葍}努か 提交于 2019-12-19 16:27:22
问题 I'm trying to associate information with projects (certain properties). I tried using the persistence store ( getPersistentProperty() and setPersistentProperty() ). The problem with that is that when I export the project and re-import it in a different workspace, those properties are gone (since they are stored somewhere in the .metadata folder of the workspace). So I was thinking that if there's a way to store the info in the .project file then this would solve my problem because this file

Debugging ncurses with Eclipse CDT

你。 提交于 2019-12-19 16:16:18
问题 I'm writing a C++ application using ncurses in Eclipse CDT however I can't run/debug my app in eclipse because the console in eclipse does not work with curses. My app runs fine if I run it from a terminal but I just added some new code and now I'm getting a segmentation fault so I'd like to use the debugger in eclipse to help me fix the issue. Is there a way to have eclipse run/debug my application but use a different terminal for the output much like when you do "tty /dev/pts/1" in gdb? Or

Debugging ncurses with Eclipse CDT

浪尽此生 提交于 2019-12-19 16:16:06
问题 I'm writing a C++ application using ncurses in Eclipse CDT however I can't run/debug my app in eclipse because the console in eclipse does not work with curses. My app runs fine if I run it from a terminal but I just added some new code and now I'm getting a segmentation fault so I'd like to use the debugger in eclipse to help me fix the issue. Is there a way to have eclipse run/debug my application but use a different terminal for the output much like when you do "tty /dev/pts/1" in gdb? Or

Eclipse Helios CDT: ignore build directory

廉价感情. 提交于 2019-12-18 16:11:00
问题 We use Eclipse Helios CDT for development. We use cmake as build system, build dirs are typically called build-* inside the project directory. How do I get the indexer and the refactoring tool to ignore the build directories? 回答1: Exclude these build dirs from project tree by adding Resource filters. Add Exclude All resource filter type to root folder of your project. You can also use regular expressions if needed. 来源: https://stackoverflow.com/questions/6666979/eclipse-helios-cdt-ignore

Eclipse CDT cannot debug using gdb on Mac

我是研究僧i 提交于 2019-12-18 14:48:30
问题 I have a C++ project imported to Eclipse CDT. I can build and run the project using Makefile and argument settings. However, when I tried to add a debug point and run "debug as local c/c++ application", it throws me an error of "Launching projectName" has encountered a problem. Error with command gdb --version By expanding the Details, it gives: Error with command: gdb --version Cannot run program "gdb": Unknown reason I installed the gdb by Macports before. If I enter command ggdb it returns

Why can't Codan find size_t

那年仲夏 提交于 2019-12-18 13:37:07
问题 I've just started using Eclipse Indigo (coming from Galileo) and I'm getting little red bugs in the gutter for every use of size_t. The code compiles without issue but I suspect I have to explicitly add a path to the include directories. I already have the usual suspects in there. I am cross compiling for a ColdFire processor using the Gnu tool chain so in addition to the standard include from mfg of the chip I have the includes under m68k-elf \include \include\c++\4.2.1 \include\c++\4.2.1

Eclipse C/C++ (CDT) import files into project - header file not found - include path

末鹿安然 提交于 2019-12-18 13:29:59
问题 I am trying to import files into an Eclipse C project and compile it. The build process cannot find the local header files. The header files are located in the src directory. How can I edit the include path in eclipse? If I were doing it manually I could specify the -I option in gcc. Building file: ../src/averaging.c Invoking: GCC C Compiler gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/averaging.d" -MT"src/averaging.d" -o"src/averaging.o" "../src/averaging.c" ../src/averaging.c:2

Eclipse CDT: How to reference 3rd party includes via a Relative path

谁说胖子不能爱 提交于 2019-12-18 12:19:12
问题 I'm new to Eclipse-CDT, setting up a new project for the first time. I'm trying to reference Boost without hardcoding an absolute path. I've put boost in my workspace folder, e.g. /home/user/workspace/boost_1_39_0 I was then hoping to add an include directory pointing to that folder relative to the workspace, but Eclipse won't do that, it seems to only want to point to thinks in /home/user/workspace/[MyProjectNameHere] Any tips? It doesn't seem to make sense to copy Boost into my project

What's the recommended Eclipse CDT configuration for big C++ project (indexer takes forever)

纵然是瞬间 提交于 2019-12-18 11:53:03
问题 I'm working on some legacy C++ code written using "vi" and "emacs" and I am trying to build an eclipse CDT setup to maintain it (on linux). The two main problems I've been facing are that the indexing takes very long (over 4h) and that even once that's finished, eclipse is barely responsive. The code base is structured in a "3-4 level deep" manner: /system/${category}/${library}/ /server/${serverName}/${component}/ Example: /system/CORE/CommandLine/*.cpp /system/CORE/Connection/*.cpp ...