eclipse-cdt

Eclipse CDT can't build - not sure what's wrong (console included)

岁酱吖の 提交于 2019-12-24 12:13:21
问题 I'm now going to give c++ a try to see what this language have to offer. I'm having some trouble setting it all up though. I have downloaded Eclipse CDT and followed this guide : http://www.dcs.vein.hu/bertok/oktatas/cpp_by_eclipse/eclipse_for_cpp_on_windows.html#Install_gdb I am using Windows 7 64bit. I have never installed a compiler before, and I'm not sure what exactly I am doing wrong. It gives me an "Launch failed. no binary found" error when I try to run my program. However there is no

How to use linux path in eclipse cdt?

空扰寡人 提交于 2019-12-24 11:29:32
问题 I wrote in my Makefile: GCC := i386-elf-gcc and use it to build my project. But when I click my 'build' button, the eclipse cdt console gets an error: make all make: i386-elf-gcc: No such file or directory make: *** [boot/bootmain.o] Error 1 I use mac os. and the path of i386-elf-gcc: zsh> which i386-elf-gcc /usr/local/bin/i386-elf-gcc In my /etc/paths there has /usr/local/bin . So I wonder how to fix this problem?? Thank you! 来源: https://stackoverflow.com/questions/42404405/how-to-use-linux

How can I link the source path of a compiled library to a different location in Eclipse?

落花浮王杯 提交于 2019-12-24 10:59:19
问题 I've installed the msp430-gcc compiler and associated tools to do some open-source msp430 development at home using Eclipse. I'm developing on a slightly older Macbook Pro running OS X Lion and installed the tools using MacPorts. I'm running Eclipse 3.7.2 with the CDT and GCC Cross Compiler Support plug-ins. I have a simple empty main() written that compiles and links just fine. The ELF parser lets me view the contents of the ELF binary just fine with the exception of one component; when I

No index in Eclipse CDT project checked out from SVN

淺唱寂寞╮ 提交于 2019-12-24 08:37:13
问题 I have checked out a cross-compilation project from SVN on Eclipse (on a Linux system). I am unable to open a functions declaration from the functions's right-click context menu (or by pressing F3). Upon research, I found out I don't even have anything like Index -> .. in the project's right-click menu. I have tried a lot with the Preferences -> C/C++ -> indexer but no useful results. I am not using Eclipse to build it but there are no errors since I can build it using makefile PS: Though

How to add libs to Eclipse CDT-managed projects

强颜欢笑 提交于 2019-12-24 03:27:42
问题 I am using the Eclipse CDT plugin to write simple C programs, and no where in the documentation can I find info on how to: Import C standard libraries such as assert.h , etc. Import non-standard, 3rd party libraries, such as glib , or even perhaps my own local libraries In Java-land, to add a jar/lib to your project's build/compile path, one solution is to copy the jar into a lib/ directory inside the project, right-click it, and then go to Build Path >> Add to Build Path . I'm wondering what

discrepancy between build result and Problems view in Eclipse CDT

倖福魔咒の 提交于 2019-12-24 03:22:50
问题 I'm using Eclipse 4.2, with CDT, and MinGW toolchain on a Windows machine (although I've a feeling the problem has nothing to do with this specific configuration). The G++ compiler is 4.7 I'm playing with c++11 features, with the following code: #include <iostream> #include <iomanip> #include <memory> #include <vector> #include <list> #include <algorithm> using namespace std; int main( int argc, char* argv[] ) { vector<int> v { 1, 2, 3, 4, 5, 6, 7 }; int x {5}; auto mark = remove_if( v.begin(

Set auto-indent not to indent labels

痞子三分冷 提交于 2019-12-24 03:11:33
问题 I'm using Eclipse CDT on Windows. I should add that I'm delighted, overall, with the auto-format feature. But one thing bugs me. I can't figure out how to configure Eclipse to not indent lines with labels. This is what I want: void myfunc() { goto MYLABEL; MYLABEL: return; } but what I get is this: void myfunc() { goto MYLABEL; MYLABEL: return; } How can I configure Eclipse to get exactly what I want? In Code Style --> Formatter , there's no section for "labels" under "Indentation". 回答1: This

How to configure Eclipse to use a particular MinGW toolchain

試著忘記壹切 提交于 2019-12-24 03:03:48
问题 So I spent all day trying to get c++ threads to work with eclipse Kepler and mingw. I have tried adding the -std=c++11 flag, -lpthread flag, another flag and even added a symbol to the table GXX_EXPERIMENTAL_CXX0X . My latest attempt at getting threads to work is to follow this advice std::thread is not a member of namespace std using Eclipse Kepler MinGW which says: Plain MinGW cannot support std::thread. You will need to use a MinGW-w64 toolchain (such as those shipped with Qt 5) that has

what's the best way to checkout from TFS to eclipse using TEE?

孤人 提交于 2019-12-24 01:49:24
问题 I'm developing a QNX app (thus I'm using an old version of Eclipse-CDT C++ etc.). Up until now I've been checking out with TFS and then importing the project files to the workspace via Import->General->ExistingProject; this means I can build/debug etc, but I've only had TFS functionality available via TeamExplorer from the TFS perspective. If I import the same projects to a different workspace via Import->Team->TFS then I have extra TEE functionality but I can't build/debug etc. So, what's

Eclipse C++ project not building: Constructor Destructor Issue

北城余情 提交于 2019-12-24 01:36:33
问题 I have all the class definitions in a header file: ModelModule.h. I have provided the sample code for that file below where I have given the declaration of 2 classes and its member functions: #pragma once #if !defined( MODELMODULE_H ) #define MODELMODULE_H //Required header files class CModelModule; class COrdProbitMM; class CModelModule // virtual base class for all types of modeling modules { friend class CSimCoordinator; friend class CHouseholdCoordinator; friend class CGenericHousehold;