eclipse-cdt

generate interface from solid class file in eclipse

any pluginsin eclipse that auto generate interface file based on solid class/impl class ? currently i hand code interface file. ...

Eclipse CDT + SCons

We have a fairly large C/C++ project using scons for the building. I'd like to go at an attempt to build this through Eclipse-CDT. Anyone have any experience with this and can tell me the steps to set up scons as a builder. (NOT using the SConsBuilder plugin, it will not work with the Eclipse-CDT from Fedora-11). ...

"Error creating session" when attempting to debug application with Eclipse/CDT & gdb

Hey! I'm receiving a rather cryptic error when attempting to debug a simple C++ application. Message: "Error creating session" Stacktrace: org.eclipse.cdt.debug.mi.core.MIException: Process Terminated at org.eclipse.cdt.debug.mi.core.MISession.setup(MISession.java:232) at org.eclipse.cdt.debug.mi.core.MISession.<init>(MISess...

Eclipse CDT: How to reference 3rd party includes via a Relative path

I'm new to Eclipse-CDT, setting up a new project for the first time. I'm trying to reference Boost without hardcoding an absolute path. I've put boost in my workspace folder, e.g. /home/user/workspace/boost_1_39_0 I was then hoping to add an include directory pointing to that folder relative to the workspace, but Eclipse won't do that,...

Referencing 3rd party Libraries using *relative* paths in Eclipse-CDT

Hi, what is the best practice to reference 3rd party C++ components (e.g. includes, libraries) using relative paths in Eclipse-CDT? I'm trying to reference Boost and Google protobuf. I've put them each in a folder in my workspace, e.g. /home/user/workspace/boost_1_39_9 I've added a reference to that folder under build settings in the p...

GCC C++ Linker errors: Undefined reference to 'vtable for XXX', Undefined reference to 'ClassName::ClassName()'

Hi, I'm setting up a C++ project, on Ubuntu x64, using Eclipse-CDT. I'm basically doing a hello world and linking to a commerical 3rd party library. I've included the header files, linked to their libraries, but I still get linker errors. Are there some possible problems here other than the obvious (e.g. I am 99% sure I'm linking to ...

Eclipse-CDT: Whats the best way to add a custom build step?

I have a file in my project which I need to compile using an external tool, and the output of that is a pair of .c and .h files. Whats the best way to integrate this into my Eclipse-CDT build? Ideally I can reference the external tool using a relative path Ideally Eclipse will know if I change this file that it needs to re-run the ext...

Eclipse-CDT: How do I configure the debugger to stop on an exception?

This might be a GDB question.. but I'd like to run my app in the debugger and have the debugger break when an exception is thrown, so I can see where the code is and what its doing at that time. I do this often in Visual Studio using the Debug -> Exceptions dialog, checking the 'Thrown' column beside the type of exceptions I'd like to s...

Eclipse-CDT: How do I handle permission denied errors opening sockets?

My program opens a socket on port 80, but if I don't run it as root (with sudo) then it fails to open the socket with a permission error. This means my application doesn't work when I launch it in the debugger. So: Can I tell Eclipse-CDT somehow to launch the app using sudo? Or, can I somehow enable my program to have permission to o...

eclipse cdt fails to find cdt

Hi, I am facing the same problem mentioned here. Could you please let me know how to fix this http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg18708.html Thanks. ...

Ecplise CDT .settings folder

How can I make Eclipse CDT store its .settings folder in the project folder instead of .metadata.plugins\org.eclipse.core.runtime.settings ? More general, can Eclipse put all the settings there? Background for the question is: I think there are many settings that I wand to put into SVN to archive and share in the project, but putting t...

Maintaining Eclipse project include/lib paths in CVS

Background: Here at the office my group uses a common linux environment where we do our code development. Our code is kept in CVS. The latest releases of our various libraries are kept in a specific directory (ie /data/group_projects/lib). Our Makefiles/Ant builds all specify what libraries are needed. We use autoconf to create the make...

Install CDT Plug-In On Eclipse Ganymede

Hello, How i can install the CDT plug-in (that you can develop in C++ under Eclipse) in my Eclipse Ganymede, remember that I use Windows Vista. Thanks! ...

Change The Character Encoding

Hello, I'm having some problems when i try to save my project in Eclipse. The error is because of the character encoding that is Cp1252 that is because i copyed the file from another that i have created in my Linux computer, then i cant save my file in Eclipse, but how i can solve this problem? But if is needed here is an screenshot of ...

Visual C++ 2008 Express Or Eclipse Ganymede With CDT

I'm learning C++, and I want to know from those who are very good developers now: What is the best IDE, Visual C++ 2008 Express or Eclipse Ganymede with CDT? Remember that I'm using Microsoft Windows Vista Ultimate. Thanks! The book that I'm reading is from Deitel: C++ How to Program, 5/e, because I don't know if the code of the book su...

Difference Betwen Visual C++ 2008 And g++

I'm learning C++ and when I was testing the Microsoft Visual C++ 2008 Express and Eclipse Ganymede, but with the g++ compiler as default, I've noted that a same code in VC++ get some errors and in g++ compile normally, without errors or warnings and execute normally, but I want to know what is the difference between VC++ syntax and g++ s...

How to setup eclipse cpp to generate multiple executables

I have made a new project in a clean eclipse installation and imported a lot of source and header files into a source directory. Some of the source files are libraries, some have a main method and are supposed to be compiled into an executable. How can I indicate which source files are supposed to be executables? Should I make differen...

Refactoring C++ in Eclipse CDT

I've installed the Galileo release (Eclipse 3.5/CDT 5.1) in hopes of utilizing the better refactoring support mentioned in http://stackoverflow.com/questions/130913/what-is-the-state-of-c-refactor-support-in-eclipse However I do not see all the mentioned refactoring options listed. I don't see any plug-ins related to refactoring on ...

Cross-debug Windows application on Linux box in Eclipse CDT

I'm moved from Windows to Ubuntu Linux, and now I want to set up development environment here. The problem is that I need C/C++ IDE comparable to Visual Studio Way to generate Windows PE binaries Way do debug Windows PE binaries At first time I tried Code::Blocks. Here I find guide to setting it up for cross-development so I managed ...

Build Managment: Eclipse project vs Eclipse Managed Make project

I am developing under Windows, and using Eclipse with CDT to develop C++ applications. Now, for build management I can create a normal C++ project and Eclipse will completely manage the build (calling the g++ compiler with proper arguments), or I can create a Managed Make C++ project and Eclipse will manage the Makefile then call make o...