eclipse-cdt

eclipse helios fails to find g++, gdb, $PATH, make

I am using eclipse CDT but it fails to find any of the linux toolchain like make, g++, gdb. seems like it is failing to retrieve $PATH.Could you let me know how can I fix this? ...

Eclipse C++ include error: no such file or directory

I've loaded a C++ project into Eclipse (Europa) and I'm familiarizing myself with the CDT interface. There is one particularly annoying error message for the following line: #include "somedir/somefile.h" somedir/somefile.h: No such file or directory The include file exists in "/opt/local/project/include/somedir/somefile.h". Under P...

Default build settings Eclipse CDT

Is there any way to change build settings which are used when I create new project in Eclipse CDT? Some of toolchain setting I have to change every time I creating new project. ...

Eclipse CDT error: "make: *** [src/test2.o] Error 127"

On Windows XP I've installed Eclipse CDT. I've installed cygwin including make, gcc, g++, and gdb. I've added C:\cygwin\bin to the windows path variable. When I create the default HelloWorld project in Eclipse and try to build, I get the following text in the console: make all make: echo: Command not found make: * [src/...

Insert/Change file headers in Eclipse?

I was using a certain file header for source code in Eclipse (defined in "Code Style") and now I changed it. Is there a way to either change an existing file's header to the new one, or more simply and likely, just insert a file header to an existing file? Thanks. ...

Remotely debugging a Linux process from Windows with gdb and gdbserver: what exactly is needed on the Windows side?

Hi all, I am running Eclipse CDT on Windows to develop C code that is built & tested on remote Linux systems. Currently, the code is never compiled on Windows. I am able to use CDT to begin the remote process on the Linux target under gdbserver, and then attach gdb from the Windows host. However, gdb immediately fails with errors like:...

Headless build in Eclipse: how to retrieve result value

Hi, I'm trying to use Eclipse CDT's headlessbuild feature for integrating Eclipse with TeamCity. I use a command line call to build my projects as descriped in this question. If there is a compilation error, a message box pops up saying "Java was started but returned exit code=1". I'd rather not have this message but get the return code ...

g++ linking issues: undefined reference to functions

I used CMake and Visual C++ to build the HyDE library. Then, still in VC++, I was able to successfully create code and build an executable that links into HyDE.lib and the HyDE header files. I then discovered that in order to work with others at my company, it would be preferable to develop in Eclipse CDT. Knowing very little about Ec...

Debugging arm-elf C code using Zylin in Eclipse CDT

Hi everyone, I'm using Eclipse CDT with Zylin embedded debug (native) and arm-elf-gdb 6.6 on OS X 10.5.8. I've got an OCD debugger connecting to a board with an ARM processor. Eclipse is able to stop at the first breakpoint and gather variables from memory, but any subsequent breakpoints or single-steps fail. I can set breakpoints ok w...

Eclipse-CDT: Use Namespace in automatic generated include-guards

Does somebody know if (and how) it is possible to add the namespace in the name of the automatic generated include guards in Eclipse CDT, when creating a new class using the .hpp/.cpp templates? For me eclipse generates new class with namespace nicely, but the include-guards does not contain the namespace, so if the same header file exi...

Customizing inclusion guards in eclipse CDT

Is there a way to customize the format of inclusion guards in eclipse CDT for the class generation template? The current format is H, but what I would like is something like __H. Not that I expect to have classes with the same name in different namespaces within my own project, but I'd prefer not to worry about it should the case arise. ...

Managing include directories in Eclipse CDT

I am using Eclipse CDT (Helios release, CDT 7.0) with a C++ Makefile project. As I am new to Eclipse, I am wondering about how to manage include directories correctly. I'm #including without any paths usually, so I am used to adding my subdirectories (not so many) to the project setting's include directories. I am somewhat confused beca...

Eclipse: Storing info in .project file

Hi, I'm trying to associate information with projects (certain properties). I tried using the persistence store (getPersistentProperty() and setPersistentProperty()). The problem with that is that when I export the project and re-import it in a different workspace, those properties are gone (since they are stored somewhere in the .metad...

Name mangling problems when using GNU linker to link to VC++ compiled library.

In asking this question, I'm looking for either better understanding of the situation or preferably a solution. I'm created C++ code and I would like to be able to use the Eclipse CDT IDE rather than Visual Studios, (my workplace is more Eclipse friendly). This implies that, practically speaking, I must use the GNU tool chain to compil...

Name mangling problems when using GNU linker to link to VC++ compiled library.

Possible Duplicate: Name mangling problems when using GNU linker to link to VC++ compiled library. In asking this question, I'm looking for either better understanding of the situation or preferably a solution. I'm created C++ code and I would like to be able to use the Eclipse CDT IDE rather than Visual Studios, (my workplac...

eclipse cdt relative include path?

Hey all. I've downloaded and moved the Xerces (v3.1.1) source here: /usr/include/xerces and I can see the source in the project explorer like this: MyCppProject Binaries Includes [...] // some other directories xerces dom [...] // some other directories And, here's my simple C++ code: #include <xercesc/util/PlatformUtils...

What are good default items to add to .hgignore when using Eclipse?

I'm new to using Eclipse (CDT for C++ use) and would like any hints or pointers to a good default set of items to add to my ignore list (e.g. in MS Visual Studio I typically add *.suo, *.ncb, etc.). ...

Include problems

Hello, I have to work with a big project with a lot of files in Eclipse Helios CDT. The structur of the project is like following: src -> common (linked folder) -> dbHandler --> folder1 ---> ... --> folder2 ---> ... In folder1 is a h-file which can't find the h-file from the folder ahead. I think it is stupid to include all folders o...

Cannot set breakpoints in CDT and eclipse

Hi, I'm using Eclipse (galileo) and the current version of CDT on Linux. And I cannot set breakpoints! It runs fun, debugs fine and stops in main...but double clicking in the left margin as I've done years ago with CDT now does not work! grrrrr... ...

Invoke and Debug doesn't work

Hello, I use Eclipse CDT (Helios) with cygwin and the most things works fine, but I can't run and debug my applications. I start the invoke or the debug and it ends immediately. There is no error or anything like that. What can I do to get it running? Thanks for any advice or idea. ...