eclipse-cdt

Using Build Variables in C code with Eclipse 4.4.2

混江龙づ霸主 提交于 2019-12-24 01:18:25
问题 I have a project that I created previously using Eclipse 3.5.2. In it, I was able to set a Build Variable in the project properties. In this case, let's say I set SW_VERSION to be 4403. Now this is intended to be a hex number, so in the Build Settings, I added a Symbol "VERSION=0x${SW_VERSION}" entry. Then in my code, I was able to use VERSION as a regular number, like so: unsigned int vers = VERSION; There was no problems, and vers got the value 0x4403 . Now I'm using Eclipse version 4.4.2

Builders page disappeared from Eclipse project properties

时间秒杀一切 提交于 2019-12-24 01:17:55
问题 I do not know what happened to my Eclipse (Helios) with latest Android SDK and latest Sequoyah plugins. Suddenly, I do not see my the "Builders" page in Project properties - not for a single project in my workspace. How can I restore this page? 回答1: Check which perspective you are in at the moment (upper right corner). A perspective can suppress UI contributions (such as property pages). It is possible that one of the plugins you've installed comes with its own perspective that does that. Try

In Eclipse CDT shared resource folder that is built differently for the project

好久不见. 提交于 2019-12-24 01:07:14
问题 I have a set of Eclipse c projects that will all refer to a common shared base of code (a mix of .c and .h files in the same folder) but will be built that code differently on a per project basis. The common code base may be edited from within each project but these edits will be fixes to be carried across all the projects. The common code will no diverge per project except for build options through defines. If I create a project for this library it implies a library build with is not what I

Eclipse CDT Custom Compiler Error Parsing Plugin

ⅰ亾dé卋堺 提交于 2019-12-23 20:32:58
问题 I'm using an uncommon C compiler with Eclipse CDT. I have a make file setup which is nice, but I'd like IDE integration with the error / warning output of my compiler. Does anybody know what steps I can take to write a plugin for parsing / supporting my compilers output? I think it should be easy but there is a barrier of entry of figuring out where to start. Would be nice if Eclipse would let me do New -> Compiler Error Parser Plugin, or something like that. Thanks 回答1: It's not quite that

What does the push pin icon adornment mean in Eclipse CDT?

血红的双手。 提交于 2019-12-23 20:06:17
问题 Whenever I exclude a .h file from the build and then re-include it later, the icon for the .h file in the Project Explorer will have a push-pin adornment. I looked on the CDT User Guide but it's not on their list of icons. What does the push pin mean? 回答1: You may have uncovered a small bug in CDT! You did not include an image in your original question so I'm going to propose that the icon overlay you are seeing is not a push-pin, but an indicator that the properties for this element (the

eclipse cdt add multiple libraries

末鹿安然 提交于 2019-12-23 19:41:22
问题 Is there any way to add multiple libraries or only one by one in C/C++ Build --> Settings --> MinGW C++ Linker --> Libraries (-l) ? What I mean is there a way just to copy from somewhere (some txt file for example) all of the names of libraries and then to paste them into the Libraries (-l) field, the same way it could be done in Visual Studio 2010? Also, where does eclipse stores information about this? I have to rename a lot of libraries (from opencv245 to opencv246) so I guess if it is

Eclipse CDT: How can I change background color of tooltip in editor?

喜欢而已 提交于 2019-12-23 19:06:37
问题 I'm using eclipse for coding C++ and Java. When declaration or definition is shown, background is black. It happens only in C++ srouce file. I dont have this problem while editing Java source files. I have installed Eclipse Color Theme. I'm not able to find where i can set background color of this window. I have been searching in General/Appearance/Colors and Fonts and C/C++/Editor/Syntax Coloring without result. 回答1: I had this problem because I installed this plugin. I tried out the themes

Eclipse CDT Indigo CLOCKS_PER_SEC could not be resolved issue

青春壹個敷衍的年華 提交于 2019-12-23 12:23:24
问题 I dont know if this is a bug or i am the only one facing this, In Eclipse CDT indigo, create a new C++ executable project and create a CPP file in a C++ source folder.i.e. src/test.cpp #include<iostream> #include<ctime> using namespace std; int main() { clock_t strt = clock(); int i = 2; clock_t end = clock(); cout<<(end-strt)*1000.0f/CLOCKS_PER_SEC; return 0; } now see that the CLOCKS_PER_SEC is unresolved, but project compiles sucessfully and runs fine too. I am on ubuntu 10.10 64 bit. Is

Eclipse Kepler CDT include external header files / Add External Include Path recursively ( with subfolders )

耗尽温柔 提交于 2019-12-23 09:27:42
问题 Hi I have a embedded C project and all the basic C libraries are stored in an external folder ( not in the workspace ). I can compile because the compiler knows where to look for this files, but Eclipse does not know that these files exist and I get error messages: I can manually add one folder with: rightClickOnProject->Properties->C/C++ Include Paths and Symbols -> Add External Include Path For example the file <stdint.h> is located in the folder C:\embARM7\yagarto\arm-elf\include so I do

Building a multi module C project (i.e. solution) with Eclipse CDT

放肆的年华 提交于 2019-12-23 09:03:38
问题 I am moving from Netbeans to Eclipse (on Ubuntu 12.0.4). I have a C application that consists of several sub projects which are libraries (shared and static), as well as stand alone executables. I can't figure out how to create a 'parent' project foo , which contains component projects foobar foofoo barfoo barbar Ideally, I want all the 'component projects' to be created under the folder foo , so that I have a directory structure like this: /path/to/foo/foobar/ (contains foobar project files)