eclipse-cdt

How to use eclipse to build C++ applications

时光毁灭记忆、已成空白 提交于 2019-12-21 04:42:23
问题 I have downloaded Eclipse Juno for C++ from here. I am trying to build a simple hello world program (mostly just to test out using eclipse for C++), but I can't get it to build and run. Here's my code: #include <iostream> using namespace std; int main() { cout << "hello" << endl; return 0; } The Problems tab shows make: *** No rule to make target `all'. I can only assume this is happening because eclipse is not configured to find my compiler ( g++ for archlinux), but I can't figure out how to

Eclipse-CDT fails to find stdlib symbols in NDK project

蹲街弑〆低调 提交于 2019-12-21 04:18:19
问题 I am trying to write a simple Android application using the NDK and C++. Specifically, I'd like to use the gnustdc++ included with the newest version of the NDK (r7). The JNI library has compiled and worked perfectly fine as C, but now that I'm trying to introduce C++, I've run into some issues. I have added ${NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/include/ to my project's include paths, and the #includes inline are resolved. However, attempting to actually use any STL class (such as vector

Eclipse creating projects every time to run a single file?

走远了吗. 提交于 2019-12-21 03:42:54
问题 i am a beginner using eclipse CDT. usually in DEVc++ or other lightweight IDE's we can directly open and edit a single .cpp file from desktop and run it. on the other hand i cannot find this simple feature in eclipse CDT! everytime i need to run a single .cpp file i need to create a project! for competetive programming such as in TOPCODER copetetions or CodeForces i usually want to run single files quickly! is there a way to run single .cpp files in Eclipse CDT without needing to create a

Eclipse Juno with CDT Doesn't Add Built-in Include Directories

丶灬走出姿态 提交于 2019-12-21 03:32:37
问题 Since I upgraded from Eclipse Indigo to Juno (on Ubuntu 12.04), I've been having the problem where it shows "unresolved inclusion" errors for standard libraries (e.g. next to #include <iostream> and #include <vector> , etc.), although the program builds and runs fine (using g++). This only occurs in new projects created with Juno, not old ones from Indigo in my workspace. Thanks to several other SO questions (see below*), I was able to trace the source of the problem to the absence of the

CDT An internal error occurred during: “Setting up indexer”

守給你的承諾、 提交于 2019-12-21 02:47:28
问题 I use Eclipse with CDT to build C++ code. After loading my workspace I get the following message: An internal error occurred during: "Setting up indexer". Here is the log: eclipse.buildId=I20110613-1736 java.version=1.6.0_24 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86 !ENTRY org.eclipse.core.jobs 4 2 2012-10-30 16:46:09.940 !MESSAGE An internal error occurred during: "Setting up indexer".

IBM Clearcase plugin installation issue with Eclipse

孤者浪人 提交于 2019-12-20 23:31:48
问题 I am trying to install IBM Rational ClearCase SCM Adapter (For Eclipse), Version 7.6.0.0 following instructions on IBM site on Eclipse Juno CDT. I am using Install New Software > Add with the following URL. http://www3.software.ibm.com/ibmdl/pub/software/rationalsdp/clearcase/60/update/windows/ Installation fails with the following message Cannot complete the install because one or more required items could not be found. Software currently installed: Rational ClearCase MVFS Support 7.6.0

Eclipse Juno's “Preprocessor Include Paths, Macros etc.” symbol scanner for CDT

℡╲_俬逩灬. 提交于 2019-12-20 10:59:32
问题 So there has been an overhaul of the scanner discovery as worked on here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=290631 http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24345.html However, I can't find any information on how to use it. I upgraded from Helios to Juno recently and now I have 8000 "Semantic Errors" and a ton of unresolved includes. However, I can't figure out how to use this new feature. I don't think there's any documentation yet, either. I think the intent is it will

Where does opencv install it's libs in ubuntu

流过昼夜 提交于 2019-12-20 10:49:13
问题 I have ubuntu 10 installed. I installed all the opencv packages I could find in the software center. I expect that it installs some .lib files somewhere that I can reference in my project, but I can't find them. Where does it put them? I want to use eclipse as the ide programming in c++, but I am having problems finding out how to get it setup initially. I am new to programming in eclipse and ubuntu in general so if anyone has a step by step guide I would love to see it. 回答1: You can find the

Eclipse CDT Builtin Include Directories

心不动则不痛 提交于 2019-12-20 10:39:46
问题 Under Eclipse CDT > Project Settings > C/C++ General > Paths and Symbols > Includes > GNU C++ There is a list of include paths. Some are in bold and are project specific. Others are builtin : For example: /usr/include/C++/4.6/ /usr/include/x86_64-linux-gnu etc If I delete: work/.metadata/.plugins/org.eclipse.cdt.make.core/*.sc The paths are automatically rescanned when Eclipse launches. I have gcc 4.6 and gcc 4.7 installed side-by-side. When Eclipse rescans it only finds the 4.6 headers and

What files belong to a build target in CDT managed build?

不羁的心 提交于 2019-12-20 03:13:02
问题 In CDT's managed builder, how are individual files assigned to build configurations? Specifically, how can I: indicate that configuration A has to build and link sources from folders A and B, while configuraion B shall use folders A and C, include sources (not headers) from a referenced project (or just any external source files?) to be also built and linked as a part of a given project? 回答1: 1st point , assuming there are 3 folders A,B & C containing .cpp files, try this : select folder C in