eclipse-cdt

Eclipse CDT toolchain question

Hi. I want to use Eclipse CDT as an editor. I work in windows machine (since it more poserfull compiuter), while the toolchain resides on the linux box. Now I open Eclipse, create empty project in the proper directory (disk on linux machine where the sources reside) and I add the sources (just drag-n-drop) into the project. All I want is...

Passing C/C++ #defines to makefile

I develop C/C++ using the Eclipse IDE. Eclipse also generates a makefile which I don't want to edit as it will simply be overwritten. I want to use that makefile for nightly build within Hudson. How do I pass #defines which are made in the project file of the IDE to the makefile ? (and why doesn't Eclipse already include them in the g...

make error occured in gcc c++ compiler with mingw linker

Build of configuration Release for project testcase make all Building file: ../atest.cpp Invoking: GCC C++ Compiler g++ -I"C:\cppunit\include" -I"C:\cppunit\include\cppunit\extensions" -I"C:\mingw\bin" -O3 -Wall -c -fmessage-length=0, -Wl,-subsystem,console -MMD -MP -MF"atest.d" -MT"atest.d" -o"atest.o" "../atest.cpp" cc1plus.exe: erro...

OpenGL and GLUT in Eclipse on OS X

I have been trying to setup the OpenGL and GLUT libraries in Eclipse, with CDT, on OS X with not very much success. I cannot seem to get eclipse to actually realize where GLUT is. It is currently giving me the error that I have an unresolved inclusion GL/glut.h. Looking around online I found that I should be using the -framework GLUT fla...

How can my (C++) code tell if it is being compiled inside Eclipse?

The title says it all. Thanks. Background: I develop in Eclipse, and invoke the makfile from Hudson for nightly builds. I would like different values for some #ifdefs depending on whether the code is built in Eclipse or externally from the makefile. So, something like #ifdef _Eclipse_ would be nice. ...

Using a .lib built with Visual Studio in Eclipse/CDT/gcc

Hello everyone I am having some trouble compiling a programm with gcc on windows which was initially developed with Visual Studio. So far I was able to resolve almost all problems like missing header files and such, but now I am stuck at one last thing: gcc fails to link to one of the third party libs my program uses (FlyCapture2.lib). ...

standalone tool for generating makefile(s) from Eclipse's .cproject file?

Is there a standalone tool, that can be ran from a shell script, to generate a makefile from the .cproject? Actually, the same functionality as the CDT itself, but that can be non-interactive. As is probably obvious, I want to be able to run a script that checkouts and builds the software, comprising from several C++ project. I am tryin...

Default flags for gcc compiler in Eclipse

I want all my C programs to be compiled with the options -Wall -pedantic -ansi by default. Is there a way to have Eclipse add these flags to the compiler command by default for all projects? ...

Vista-Eclipse (Galileo) CDT w/ MinGW and MinGW's GDB fails to output cerr output.

I installed Eclipse and I can get g++ to compile the code correctly; however, when I start the debugger none of the "cerr >>" outputs are ever displayed in the Eclipse console. I tried to run GDB manually and it, too, does not display the cerr output. Is anyone else experiencing this?? I am running the GDB 5.3-something that is available...

eclipse cdt command line input

I'm new to eclipse cdt. I'm wondering how can i add command line argument (e.g.-lm) for compiling ...

Eclipse - What is exactly a Builder ??

Hello, I don't understand what is exactly a builder in CDT, and what is the relationship with the "C/C++ Build" content. I set up SCons in the "C/C++ Build" confuguration. It does work : I made two configurations (release and debug), and my SCons scripts are launched. But as I try now to debug, I am studying these Builders stauuf (I am...

Eclipse CDT - Build sub directory within a project

Hi, i would like to know if there is an option in Eclipse (CDT) to build only part of project. my situation is i got a very large single project which consist of many sub directories, and my build system is a custom script. now if i run the custom script from the root folder of the project, it will build all the sub folders of the proj...

CDT, SCons, and debug with attach

Hello, I am new to development in Eclipse/CDT, and not very experienced with gcc/gdb. My project (a shared library) is built in Eclipse by using SCons. The generated .so is at the end of the SCons script copied to an other place (maybe it's an important point). My application is so a plug-in that the user must load in the host applica...

Eclipse CDT - Copy static resource file to bin_dir

So my problem: I have a C++ project in CDT 6.0 on Eclipse 3.5, and I now have a static resource file (a .properties for log4cxx) that needs to be copied to the build folder. This file is accessed at runtime to configure the log4cxx subsystem, and it needs to be available in the same directory as the executable. For example, the Debug/ fo...

Understanding the Eclipse CDT projects

Hello, I want to commit my CDT project to SVN. I am a newbie regarding CDT, and I'd like to know the files describing the project. The concerned files seem to be : .project .settings (directory) .cproject .csettings (directory) What are the purposes of .project and .settings ? .project just include references to XML files stored in ...

Personal Plugin in Eclipse

I own a plugin for eclipse, but I want to use it at work. Is there a way to make eclipse use plugin files without it affecting other people using the same central version of Eclipse? Maybe some custom preferences? Thanks. EDIT: Started a bounty. Please specify a step-by-step solution to this, as I'm not very experienced with the inner-...

Eclipse CDT Custom Compiler Error Parsing Plugin

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 fig...

Set up CUTE (Eclipse CDT Unit Testing Plugin) on OSX

I am trying to set up the CUTE unit testing plugin for Eclipse C/C++ Development Tools. The documentation says: If you did not install Boost in the standard location, you will need to specify it. Right click on the newly created CUTE project, and select Properties. In C/C++ Build, Settings, choose the Tool Settings tab. Specify the ...

Eclipse > CDT + Cygwin > How to configure a C++ compiler?

So, I've been looking all over. I can't find anywhere that talks about specifically how to configure Eclipse + CDT to run the gcc / gcc++ compiler. I am running Eclipse on a windows box, but I've installed Cygwin. [edit] I've installed Cygwin, and I've added C:\Cygwin\bin to my path environment variable. I'm now getting this error...

Lightweight alternatives to CDT for C++ edition in eclipse

For a few years now, I've been using Eclipse as my all-purpose file editor, regardless of the language I use (which mainly includes C++, Matlab and python, with some XML thrown in for fun). However, I recently got a new machine with more a recent Eclipse, and the wonderful Colorer plugin, which I previously used, crashes (Which is a se...