I am using 64-bit Windows 7 PC and I want to develop C/C++ programs using Eclipse IDE.
I have tried DOSBox but it was not working for me. Also, I din't liked it as well.
I just want to use Eclipse for the same. I tried using CDT Plugin in Eclipse but that doesn't worked.
When I create a new C++ project, there are different Tool Chains available - Cross GCC, Microsoft Visual C++, MinGW GCC. I really don't know what exactly it is. I tried all but I am getting error and snapshot attached :-
Basically, it is not able to detect what iostream, stdio, cout is.
I tried different solutions available on other posts but none worked for me.
I don't know what to do with it. I know I am having problem due to 64-bit Windows but I want to fix this now. Please help!
You need to install MinGW, and then select the MinGW toolchain when selecting a new project.
Well I tried different tool chains on Eclipse IDE, but nothing worked.
Then I installed CodeBlocks IDE and plugins for the same as well.
Sic: Now, I am running C/C++ codes on Code Blocks perfectly.
You need to download MinGW and install the C++ compiler, don't forget to add the MinGW bin to the system variables under "path".
I recommend you using Visual Studio Code. If you do install Visual Studio Code, make sure to install Code Runner plugin to make running C++ projects easier.
Related
from my computer class last year, I have a bunch of c++ programs. I made these programs in Microsoft visual c++ 2010. That program I used it only available on Windows so I needed another program for I can still code. I now have a Mac and I want to still be able to code, so I downloaded Eclipse. My question is, how do I change the Eclipse setting to be the same as the windows? For example, when I copy my coding, it finds (using namespace std) and (#include ) as an error. Thank you!
Which version of eclipse did you install? Unless you installed the versions of eclipse with C/C++ plugins, it's just a Java IDE.
But uh Eclipse kind of sucks anyways so I'd recommend trying Clion.
i am learning c++ using eclipse. I have heard that i need a compiler with it. Which one should i use and how do i add it? Also if there is a better ide than eclipse for c++ please let me know. Thanks
Most Linux boxes come with GCC built right in. If not, fire up the package manager and install.
Mac I can't speak on.
For Windows your easiest choices are MinGW and Visual Studio.
My preference goes to MinGW because of tight integration with Eclipse.
If you go with using Visual Studio, learn using the IDE that comes with it. Once you know C++ and gain some experience, then try using using Eclipse with it as Eclipse doesn't work well out of the box with Visual Studio. Until you know what the error messages that will come your way mean, Visual Studio under Eclipse will just cause you grief.
As for better IDE, that's a matter of preference, but real men use ed and start fires by spitting on wood really, really fast.
EDIT
If anyone has experience with the current state of Clang support in Eclipse, please chime in.
You didn't say what operating system you're running on. For Windows, you can download Visual Studio Express. For Linux, GCC works well, so if g++ at a command prompt isn't found, you should install the build-essential package, like this:
sudo apt-get install build-essential
I would like to compile with MinGW on Windows. I am seeking for IDE (Visual Studio 2010 is out, because as far as I know it cannot use MinGW) with integrated SVN support like AnkhSVN plugin for Visual Studio 2010. One candidate is CodeBlocks. Does it have some SVN plugin? Or would you recommend another IDE? Thank you.
You can use Eclipse IDE for C/C++ Developers.
With the subclipse plugin you have accesses to svn as well
Link: http://eclipse.org/downloads/moreinfo/c.php
I use Eclipse with CDT, and SVN integration is very good.
I'm all for Eclipse CDT, it rocks.
However, you did mention you wanted something more lightweight.
A popular Windows and Linux alternative is Code::Blocks (http://www.codeblocks.org/).
Its a great open source C/C++ IDE and even comes bundled with MinGW.
EDIT: Also has SVN support, according to http://www.codeblocks.org/downloads/7
You can also try netbeans, most people in my company use it now and they say it's faster than eclipse.
I still use eclipse, but since you don't want it you may want to try netbeans with svn plugin.
try http://qt.nokia.com/products/developer-tools
It was written for Qt but it can also be used for plain C++. Furthermore it has great support for CMake (if you are like me and do not like qmake).
I use Eclipse CDT at our school, the University of Advancing Technology in Tempe AZ. One of our students put together a package that's an all-in-one version of Eclipse CDT (Helios at the moment. Indigo real soon now.) + Subclipse + Boost + cppunit. It is targeted at Windows 7 only. If you wish, you can download this self extracting executable at http://dl.dropbox.com/u/341940/cdt.exe
I'm very partial to CodeLite. You can use it on Windows and Linux. It has support for Subversion, Qt, and wxWidgets.
http://www.codelite.org/Main/ReadMore
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 wanted to shift from Visual Studio 2008 to Eclipse Helios for C++ dev. I tried in mac and found a lot of unstabilities while debugging. Then I tried on Linux and similar. This is the last problem I found:
http://www.eclipse.org/forums/index.php?t=msg&th=205832&start=0&S=0b23d01871ba30eea27e36afdf03712d
At the moment I am going to give up eclipse. I would just like to know how many of you succeeded using Eclipse Helios CDT for debugging C++ programs or if I am just a dammned, isolated case, before I give up or continue trying to go forward.
I use Eclipse Helios as my C++ IDE. Os is Ubuntu 10.04. I use it regularly for debugging and can't remember to have ever had any serious problems. I had never problems with "unstabilities" while working with projects of significant size including Qt applications.
I would suspect you are an isolated case. If you are more specific, we might be able to help. If you want to abandon Eclipse though, I have heard good things about Qt Creator but still consider Eclipse superior.
The only thing that bugs me while debugging is that the debugger doesn't respect breakpoints inside of template functions and source code is not shown for template functions. If I recall correctly, this is different for Qt Creator but am not sure right now.
I use Helios as well on Ubuntu 10.04, and Windows XP to debug my Qt projects built with mingw.
I've never had a problem.
I've never tried on a Mac though.