Saturday, November 21, 2009

HOW TO USE g++ COMPILER WITH ECLIPSE IN WINDOWS ?


If you just want to install the compiler follow Step One. If you want to testthe compiler with Eclipse follow Step Two.


Step One
1. Download MinGW installer and install it.
2. Ad the path: Right click on: My Computer>Properties>Advanced>Environment Variables
3. Look for Path in the list and click on Edit, add ;C:\MinGW\bin at the end (don't forget the semicolon). Save changes. That's it!

Step Two
3. Now, to test the compiler: Open Eclipse, click on File>New>C++ Project , write a name for your project and select Hello World C++ project and make sure that MinGW GCC is marked. Click on Finish. We are ready!
4. Click on Run>Run As>1 Local C/C++ Application. If you see the console (on Ecplise) you will see "Hello World!!!"
5. Now is time to code!

No comments:

Post a Comment

Stats


View My Stats

Contributors