eclipse-cdt

Can Eclipse CDT do auto-complete when using typedefs?

For all my code Eclipse's autocomplete function is working fine, except when I use a typedef. Example code (someclass.hh): typedef std::vector<int> IntVector; class SomeClass { void sort_int_vector(IntVector &iv) { iv.//eclipse auto complete does not work. (ctrl-space) } } How can I configure Eclipse to do auto-complete in thi...

Run a command before debugging in Eclipse-CDT

In other IDEs like SlickEdit, I could set the Debug Configuration so that it would run a command before starting the debugger. Generally, this is a simple shell script that prepares the data for debugging. Where do I set this in Eclipse? ...

Import active preprocessor symbols from file into Eclipse CDT

I'm using Eclipse CDT for a C project with custom makefiles, and I want to use the inactive code highlighting as proposed in the answers to question 739230. The automatic discovery of active/defined symbols does not work for my makefiles. Instead I have created a text file for each build target listing the active symbols. So my question...

Runtime error when running from terminal, but not from Eclipse

I have a C++ project on eclipse which compiles and runs fine from eclipse, but when trying to run it from the terminal inside the workspace directory, i get the following error : ./my_project: error while loading shared libraries: libstdc++.so.3: cannot open shared object file: No such file or directory What can be the problem? ...

multidimensional array in C++ hang

I wanna to declare an array: int a[256][256][256] And the program hang. (I already comment out all other codes...) When I try int a[256][256], it runs okay. I am using MingW C++ compiler, Eclipse CDT. My code is: int main(){ int a[256][256][256]; return 0; } Any comment is welcomed. ...

Most useful shortcut in Eclipse CDT

I would like to make a cheat sheet presenting the most useful (and time saving) shortcut for Eclipse CDT (C++). Can you share what are the most useful shortcuts that you use in CDT? Please, post only general shortcuts (available when doing C++) or CDT specific. ...

Eclipse CDT: Make a project rebuild when a library built in another project was rebuild

We have several C projects in Eclipse, using CDT (CodeSourcery++). There are two projects that build libraries for use in the "main" project that builds the final application. Now we find that rebuilding one of the libraries does not cause the main project to be also rebuild. Obviously, there is no dependency in the makefile to cause t...

What plugins do you use along with Eclipse CDT?

Suggest some plugins you find useful in your day by day work. Eclipse CDT repositories: Helios: http://download.eclipse.org/releases/helios C++ Development Tools: http://download.eclipse.org/tools/cdt/releases/helios Plugins: Subclipse: http://subclipse.tigris.org/update_1.6.x Eclipse Linux Tools: http://download.eclipse.org/t...

Default class naming customization in Eclipse using CDT

When I try to create a new class in Eclipse using the CDT plugin I enter in the name of the class. For example MyClass. This generates the default file names MyClass.h and MyClass.cpp. I want to change the default file naming to be of the form my_class.h and my_class.cc. Can this modification be made and if so can it be done from wit...

how to add a tool to eclipse-cdt to automatically generate a header file during make

I have a tool that converts an data file into a C header file for inclusion into my project. Now I would like to have this tool run automatically during make whenever the data file changes. Where can I tell Eclipse CDT which tool to run and what data file the header depends on? ...

How to add a library to an Eclipse project.

I'm trying to add a Library to Eclipse Galileo and it won't work out. Library: gdi32.lib -> In MinGW: libgdi32.a What ever I try, it doesn't work. Can anyone tell me EXACTLY where to enter what, to accomplish this ? Details: I have the function call: wndclassex.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); ... lead's to err...

Linux IDE with proper support for STL debugging

I am looking for a Linux IDE with support for STL debugging. the problem is that with Eclipse CDT, if I inspect the vector after the push_back: int main() { vector<string> v; v.push_back("blah"); return 0; } I get something hostile like {<std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, st...

Newbie Problem: C/C++ with Eclipse

Hello guys, My setup includes: Windows Vista, Eclipse 3.5.0, and gdb, make, gcc 3.4.4, g++ 3.4.4 enabled through Cygwin, and environmental variable is already set. My FIRST problem is that I can run and build an application like the information in Console: **** Build of configuration Debug for project HelloWorld **** make all <br />...

Eclipse CDT: Shortcut to switch between .h and .cpp?

In Eclipse, is there a keyboard shortcut for switching the editor view from viewing a .cpp file to a corresponding .h file, and vice versa? ...

How do you manually install the eclipse-CDT plugin from an archive/zip on ubuntu?

I have successfully installed Eclipse 3.5 and Java 1.5. I would like to install CDT without using Eclipse's "install new features" (nor can i use the Eclipse-CDT installer) option because this computer is offline. What I did: I downloaded the archive of cdt from CDT's official download page. I used file-roller to unzip everything into...

Color Themes for Eclipse CDT?

Hello, I know that there are many questions regarding the color themes in Eclipse. The problem is that all of them are for Java or PyDev and, of course, they don't work for C/C++. Do you have any cool syntax highlight theme for C++ under Eclipse? ...

Eclipse CDT generated getters / setters name

Is there a way (either via the UI, or in config files) to change the names of the C++ getters/setters generated by Eclipse CDT from the Java-style getSomething() to the more C++ like something() ? ...

File templates in Qt Creator

Salutations. Currently, I use Eclipse (Galileo) with CDT and Boost libraries in OS X 10.5. I have begun the adventure of learning Qt, and I have installed the free version of the Qt SDK. I have grown quite accustomed to Eclipse, but unfortunately, integration has not been developed for Eclipse in OS X yet. My question, therefore, is ...

How to get FFTW to work in Eclipse CDT on windows XP

I'm trying to get the Fastest Fourier Transform in the West to cooperate with eclipse. I downloaded it from the website (it's a big folder called fftw-3.2.2 filled with other folders with names api, dft, cell, doc, kernel, fdft and more, each filled with .h and .c files). I've tried going to project>Properties>MinGW C linker>Libraries>...

Eclipse CDT on Snow Leopard cannot find binaries

After upgraded to Snow Leopard, I can no longer run Eclipse CDT project on my computer. While the build process completes without any error, Eclipse does not recognize the binary file it created. When try to point to the binary file in Run Configuration.. dialog, it cannot find any binary in the project. Though executing the file from Te...