I am looking for a C++ IDE, typically for debugging purpose. In particular, where I can navigate in source code; say method definition, member declaration etc.
I am a Java developer and use Eclipse. I create J2ME project in Eclipse, build it and finally deploy it at same place. At the time of debugging I can easily trace out what I am looking for.
For C/C++ support I installed plug-in "Eclipse C/C++ Development Tools".
After installing above plug-in, C/C++ code open with font/style/color...but not able to navigate :(
Please help me.
Thanks,
Amit
the cdt plugin from eclipse works fine for me. Perhaps you should update to the latest version and make sure you change your perspective to c++.
Another great c++ ide is qtcreator.
Related
How difficult is to use codelite on top of a scons project?
what features i should expect to lose? is there a way to configure codelite to use the scons configuration files to keep track of the project files.
At the moment i'm using Netbeans 7.1, but the tool doesn't scale well with complex projects like LLVM. I'm curious with codelite as it seems to have a very good code completion architecture (relying on the llvm clang plugin) but i'm not sure how hard will it be to migrate my project (based on scons) to it
I dont know anything about codelite, but eclipse is an excellent IDE with code completion like you mention. There is an SCons plugin available for eclipse called SConsolidator.
I have found that eclipse has excellent support for C++ and Python.
Why not?
But codelite is old-school IDE with very poor functional, like Visual Studio 6. I recommend use Eclipse CDT.
I have several (huge) projects written with CodeGear C++Builder 2007, making use of components, forms/"designs", etc.
Problem: The IDE sucks, especially the lack of proper navigation in the code gets on my nerves. I'm looking for an alternative IDE to use at least for the actual coding (and maybe for forms-design as well) that can read C++Builder projects (.cproj files).
I thought, if any open IDE can do it, its Eclipse... Other alternatives are welcome if you know them. But before I spend too much time trying to figure out how to make that work--- Does anyone have experience with this and can confirm/decline whether I can use Eclipse to work on C++Builder projects?
Yes, Eclipse works as an IDE with C++Builder. I regularly do my coding in Eclipse and use C++Builder for the compiling, form designer, and debugging. (Eclipse should be able to invoke a command-line build of C++Builder and look for errors, but I've never tried this.)
Eclipse doesn't need to be able to read .cbproj files; instead, create an Eclipse project in the same directory as your C++Builder project, manually set up your Eclipse paths and includes to match your C++Builder project, and let Eclipse go from there.
I'm currently using Eclipse Helios, which is rather old. Newer versions of Eclipse CDT improve its ability to parse C++, but unfortunately, this seems to cause it to reject more of C++Builder's C++ extensions. I haven't yet investigated to see how to best handle this.
I am developing for android using eclipse and android's plug-in for eclipse. I am getting proper intellisense for Java code. The application I am developing consists of both Java and C++ code. How can I get intellisense for C++ in this environment.
Thanks
Try downloading the C Developement Tools for eclipse (CDT). The update site can be found here. This module provides syntax higlighting and code completion for C/C++ and works fine for me.
EDIT: Sorry, the above link is dependent on my eclipse version. Here you can find CDT distributions for all other eclipse versions.
I would like to develop a Windows build of my Android game for testing and demo purposes. Most of my code is C++, using OpenGL to render, with a thin Android/Java layer that forwards touch events and loads resources.
My first thought was to make a Visual Studio project for my Windows version, as I'm familiar with it and the debugger is excellent.
Can I get similar C++ debugging functionality with Eclipse & CDT? It seems tidier to have all versions working from the same IDE, and it would be nice to become less dependant on proprietary software. Would I be able to add a Windows build configuration in CDT, switch over, and have the IDE launch & debug my Windows version instead? Or would I be entering a world of pain setting this up?
Are there any other approaches I haven't considered? All advice welcome!
CDT is a perfectly good Windows development environment. Just make sure that you have installed the Windows SDK.
If the concern is that Visual Studio puts a lot of the Windows-specific code in place for you, you might consider starting a new project in it. I'd avoid MFC. Just create a new Win32 project. Then, you could take that code and use it as the basis for your Eclipse project, folding in the platform-independent code from your original Android game.
You can easily come up with a cross-IDE solution using makefiles. I guess cmake could help you here.
You could try out MPC. It can generate VS solutions or Eclipse CDT projects(and some more). I've been using it at my previous job and it's really neat once you get the hang of it(which shouldn't be very hard). I'm not sure how well does it work in a
cross-compilation environment, as we were using it to build our project on PC for Linux/Windows.
There's no reason why you shouldn't be able to use Eclipse on WIndows as well.
As far as I know though (I haven't used Eclipse for C++ that much), Visual Studio still has the best debugger. (it can also be a good code health check to compile it with more than one compiler). So there may be reasons to go with VS as well.
If you do decide to go with VS for the Windows version, you may want to look into CMake for managing the build system, since it can generate Visual Studio solutions as well as makefiles and pretty much anything else you may need to build.
I'm figuring out that there's two ways of writing C++ in Eclipse: either download the Eclipse IDE for C/C++ Developers or download the regular Eclipse for java and add the CDT plugin. What is the difference between these two? (Note that I'm already exstensively using Eclipse for Java) Thank you
The C++ tools end up the same so depends if you use Eclipse for other things.
If for other things then I would start with the more complex setup e.g. if you do Java J2EE I would download the Eclipse J2EE then add the C++ tools
If just C++ start with the Eclipse C++
I also found using the Yoxos/Eclipse Source packaging easier to download extra packages. (unless you need the absolute latest patch)
edit:
Sorry I did not read the question fully I have given the general answer. However as you have eclipse working and setup already and if you are happy then just download the C++ plugins. Note I have a separate workspace for java and C++ helps as you will want different perpecives etc and also cuts down on the projects in the explore rs/
Or use EasyEclipse for C/C++ and get a few other useful tools pre-integrated too.