eclipse-cdt

Program execution stop at scanf???

main.c (with all the headers like stdio, stdlib, etc): int main() { int input; while(1) { printf("\n"); printf("\n1. Add new node"); printf("\n2. Delete existing node"); printf("\n3. Print all data"); printf("\n4. Exit"); printf("Enter your option -> "); scanf("%d", &input); string key = ""; string ...

Include External headers in Eclipse for C

I have some external header files in a separate directory (its the sqlite3.h). I want to be able to use them in my Eclipse CDT project. How would I include the directory to Eclipse? ...

Eclipse CDT -- How to map Linux path's to Windows paths?

We have a C-code project written for a Linux environment but we also want the ability to view and edit the code on Eclipse for Windows and have the headers be resolved. The problem we are facing is that a lot of the headers are included with absolute paths in the Linux format such as: #include "/path/to/custom/header.h" What I would l...

Eclipse CDT Console does not link to code for compilation errors

I'm using Eclipse for my C++ project under Linux. When I get compilation errors I can see them in the Console window. I am currently manually navigating to the file and line number to fix errors. Is is possible to get Eclipse to provide links to the correct file and line number? ...

With Eclipse: How to add include paths and libraries for all your C project

It is possible to add include paths and libraries to all C projects. In others words who can I make them global or copy one C project build setting to an other one ...

How do I get Eclipse CDT to ignore files

I have a C++ project in Eclipse. The project uses Perforce and Eclipse has the Perforce plugin installed. Everything was fine, until I decided to create a git repo in my project. I created the git repo to snapshot some changes which I wasn't ready to commit. Everything was fine until I refreshed my files in Eclipse. Two problems hav...

Eclipse CDT Linuxtools gives broken pipe error

I am running Eclipse CDT 6.0.2 on a SLES 11 x86_64 platform. My project is of linuxtools type. I am getting the following error running builds: " ../libtool: line 747: echo: write error: Broken pipe make[2]: write error make[1]: *** [all recursive] Error 1 make[1]: write error make: *** [all recursive] Error 1 " Any...

Eclipse: how to add an own 'built-in' C/C++ code style profile?

I would like to add another C/C++ code style profile as default to our branded eclipse distribution. Does anyone know how to do that? So instead of instructing the users to import the profile xml-file, I would like it to already be in the code style -> profiles list along with the built-in profiles (Windows->Preferences->C/C++->Code Sty...

Eclipse CDT printing selected C code snippets/functions

Is there a quick and dirty way to print(to dead trees) selected code (C in this case) snippets? In particular, I wanted to print about 200 lines worth of code, but print dialog only offers printing of particular pages or all pages, but not selected text! Of course, one can copy and paste into another editor, but that seems rather harsh...

How to change Eclipse enviornment

I am using eclipse pdt and all my files in the folder have php support. I want to use javascript support on JS files. How could I do that in Eclipse pdt helio? Thanks ...

How to make the debugged app find shared libraries when invoked in gdb inside Eclipse CDT?

I'm trying to debug Firefox trunk inside Eclipse CDT on Linux x86_64 (Ubuntu Karmic). I have done the following: I have made a path mapping from / to / per DevMo in the Source pane of the project-level Run/Debug config. I have set /opt/Projects/obj-debug/dist/bin/firefox-bin as the C++ app in the Main pane. (My Firefox obj dir is /opt...

How can I parse XML doc with Schema 1.1, in Eclipse IDE?

How can I validate XML documents with Schema 1.1 in "Eclipse IDE" OR How can I validate an XML docs in "Eclipse IDE" by using external Apache xerces parser? (this will resolve my issue as xerces supports Schema 1.1) ...

GNU/Linux developement n00b needs help porting C++ application from windows to GNU/Linux.

Hi! These questions may not be perfectly suited for this site, so I apologize in advance for asking them here. I'm trying to port a computer game from windows to GNU/Linux. It uses Ogre3D,CEGUI, ogreogg and ogrenewt. As far as I know all dependencies work on GNU/Linux and in the game itself there is no ooze-specific code. Here's the q...

Xlib.h and Xutil.h not found in Eclipse, how can I fix this?

Hi, I'm a newbie to Eclipse IDE for C/C++ development. I just installed MingW and set it up as my system's environment variable. I am trying to make an application that uses the X library but eclipse cant seem to find it. Eclipse works with any other simple standard library functions but it cant find the X library. Please Help! Here's ...

Eclipse call hierarchy skips calls in undefined #ifdef regions

Hi all, The "call hierarchy" and "declaration" features in Eclipse CDT omit results that exist in undefined (greyed out) #ifdef regions. Example: void blah(void) { #ifndef ABC foo(); #else //line is greyed out bar(); //line is greyed out #endif //line is greyed out } The call hierarchy for foo() will list ...

Problems debugging using Cygwin gdb in Eclipse CDT(Helios)

I am trying to debug an application using Eclipse CDT and cygwin gdb and I am facing a problem if my code calls Sleep(), it looks like whenever a sleep is encountered in the code the debugger seems to go in an infinite loop(I meant it never terminates or hit a breakpoint after sleep). On pressing pause the code is stuck on one of the thr...

A consistent and simple group of IDE and tools for embedded code and unit test in C++ ?

I’m starting a new firmware project in C++ for Texas Instrument C283xx and C6xxx targets. The unit tests will not run on the target, but will be compiled with gcc/gcov on a PC with windows (and run as well on PC) with simple metrics for tested code coverage. The whole project will be part of Cruise Control.NET for continuous integration...

using Eclipse to develop for embedded Linux on a Windows host

I got a question of using Eclipse to develop for embedded Linux on a Windows host Here are now I have and where I am. 1. a Windows host that have the latest Eclipse + CDT (c/c++ development tools) installed 2. a Ubuntu host (ssh + samba installed) that contains sources and toolschain to build the project. (the windows and ubuntu hosts ar...

Eclipse CDT configuaration

Hi, I have installed eclipse with CDT. I have GNU compiler tool chain installed on my PC. But I need to replace the GNU compiler tool chain with our own Tool chain, how can I do this ...

Eclipse - CDT Content Assist extremely slow

Hi.. I just installed eclipse-cdt 3.2.2 on Linux (Mint). The content assist feature which pops up when you do a "." or "->" on a struct or struct pointer, is extremely slow and freezes the entire IDE for around 10-20 seconds. This I feel, is because it searches through the entire include directory /usr/include that comes by default for...