eclipse-cdt

Eclipse CDT with Cygwin GCC: automatic discovery of symbols and paths

I am using Eclipse CDT with Cygwin GCC as compiler. My project is using a custom Makefile.The problem is that when debugging the code, it couldnt locate the source files, even though I added a custom path mapping for: /cygdrive/c <-> c:\ That in addition to the fact that I am getting "unresolved inclusion" for all standard header files,...

Having trouble building c++ project in Eclipse CDT in OS X for a silly reason

I'm trying to build a very simple c++ program in eclipse and I'm getting a very silly error: **** Internal Builder is used for build **** g++ -O0 -g3 -Wall -c -fmessage-length=0 -oMyFirst.o ../MyFirst.cpp g++ -oLinkedLists MyFirst.o ld: unknown option: -oLinkedLists collect2: ld returned 1 exit status Build error occurre...

CDT 6 (eclipse galileo) snow leopard debugging issue

I upgrade to snow leopard and xcode 3.2 this week, and since that I'm having problems with CDT. I tryed this in CDT 5 (ganymede) and CDT 6 (galileo). If I try to debug the application using launcher "Standard Create Process Launcher", it delays about 10 seconds to actually get in the debugging breakpoint, which is very odd. If I use as...

Move common include files to a separate directory, yet keep them easily editable within eclipse?

We are using Eclipse+CDT+SVN(Linux). How can we have some common header files in a separate include directory, which is also in the SVN, but not in the project specific subdirectory. The main goal would be to create some common, reusable code for multiple projects and to be able to easily edit/commit that code within eclipse. We have d...

Can I run a script in an Eclipse run configuration?

My company has traditionally used a Linux command line development environment. We use a script to manage the PATH and LD_LIBRARY_PATH environment variables when compiling and running. This script is called by adding it to the beginning of a command, like this: sbs make sbs ../bin/foo.exe I am trying to get our code to run from Ecli...

cmake and eclipse: default include paths?

Hello! I have a project that builds with CMake system, and I like to import it in Eclipse. However, when I generate eclipse project files with 'cmake -G "Eclipse CDT4 - Unix Makefiles"' there are no default include paths in Eclipse project(such as /usr/include' or the gcc path for standard headers). How to fix that in most right way? ...

Windows file association to open with Eclipse/CDT editor.

How can I open a file with Eclipse/CDT when I double click it in windows explorer? I set the file association in windoes to eclipsec.exe and it opened Eclipse/CDT, but not the file. If Eclipse is open, it says "Workspace in use..." Ideas? mcb ...

Remotely debug Linux Kernel from Windows?

Hi all, I was wondering if anyone knew of a way to remotely debug the Linux kernel running under VMWare (and if so, if there's a way to do it in Windows since linux kind of scares me...). Both are x86. I know VMWare has support for this (I saw a post about remote debugging via gdb), but if there was a way to do it from Windows (i.e. Ecl...

Debugging a Static Library with the Eclipse CDT

I'm working on getting set with Eclipse CDT for some embedded development and I'm having difficulty getting source level debugging working for static libraries. I'm using my own Makefiles, so that is my first suspect right now, especially since gdb claims that no symbol table info is available for the functions with no source. When usi...

Elicpse CDT thinks it's broken

I'm using Eclipse for some embedded development and recently is started to give me these errors every time I save a file or do a build. It's annoying but for the most part it doesn't seem to be causing any problems (It even still highlights warnings/errors int the source. What's going on here? Plug-in org.eclipse.cdt.cross.arm.gnu was u...

Developing JNI applications with Eclipse (Combined Java/C++)

Hello. Have anyone successfully managed to setup a combined Java/C++ project for Eclipse? What I am trying to do is quite simple; 1) Compile my Java sources 2) Run Javah to create the JNI interface 3) Compile all the C/C++ sources 4) Link native shared library + package the JAR Hints or even real projects which work are much welcome....

How can I debug with piped input in Eclipse CDT?

I'm just starting out using Eclipse CDT. I have a program that processes standard input - so you might execute it on the command line like this: myProg < inputFile.txt I would like to debug the program in Eclipse CDT, with that file as input, but I can't see how to configure this in Eclipse - any ideas? ...

Eclipse CDT: how to get rid of a specific warning?

How do I get rid of the "deprecated conversion" warning in CDT? I know how to #pragma it out of the compilation process but the highlighting in the CDT is annoying! ...

Eclipse CDT 6.0 (galileo) problem

I installed CDT 6.0 on my eclipse Galileo, but when I try to build or run my existing C++ project, there is no result. Clicking on "build project" button simply does nothing, no message in the console. Does anyone know how to get rid of this problem? The installation of CDT has not been clean. The main features got installed but the opt...

Remote C++ Development using SSH only inside Eclipse Environment

How do you integrate Remote Systems Explorer and CDT plugin inside eclipse ? What I mean is that you can use Remote Systems Explorer (RSE) plugin to work on C++ code on a remote linux box inside Eclipse but when you try to compile, you basically run a shell command through SSH. The CDT plugin is unable to locate the remote system and of...

How to configure double-click word delimiters in Eclipse CDT?

Colon (:) is not considered a word delimiter when I double-click a word in the Eclipse CDT editor to select it. How do I make double-click selection treat colon as a delimiter? If the solution is file-type dependent, I need it to work while editing makefiles. I have found an FAQ about extending the editor to change double-click select...

Share an Eclipse CDT project

I have been working on an embedded project with a friend and I like to send him the project every once in a while so he can go over the code. What is the best way to send him the project so that he can build it fairly easily on his side. Zipping up the workspace and sending it over does not seem to work very well and exporting the proj...

Eclipse C++: How do you quickly switch between header and implementation files?

How do you switch between header (.h) and implementation files (.cpp) in Eclipse when using the C++/CDT environment with a keyboard shortcut? In XCode you can quickly switch between headers and implementation with applekey option and up/down arrow keys. I was hoping that eclipse had something similar, but I haven't found it yet. ...

Create an Eclipse project on the command line?

I would like to have a shell script create an entire CDT project on the command line and add it to a workspace. I'm willing to generate the .project and .cproject files myself, but I'd like something that would actually do the adding of the project to the workspace, because that is an opaque binary file that I'd rather not have to mess w...

How to include files from remote server in Eclipse project without copy to local PC?

I have to PC, one is server on Linux containing project files ( also build machine ) and another working desktop machine on WinXP. I want to create a project in Eclipse on my desktop machine without coping files to local machine, actually I want to be able to modify remote files and immediately run build, unlike modifying local files and...