Sunday 9 May 2010

How to Install Eclipse C++ and MinGW

Step 1 - Install MinGW

Step 2 - Install Eclipse C++
Step 3- Install Java Portable
Step 4 - Start a console
  • start > run > cmd > enter
Step 5 - Set up your path
  • path=c:\java;c:\eclipse;c:\mingw\bin;%path%
Step 6 - Start eclipse from your command line
  • eclipse > enter
Step 7 - Specify your work directory
  • The "workspace launcher" dialog will appear
  • Set workspace to "c:\work"
Step 8 - Create a new project
  • file > new > c++ project
  • set the project name to "hello-c++"
  • set the project type to "makefile project > hello world c++ project"
  • select "finish"
Step 9 - Select the console
  • In there bottom pane there are tabs for "problems", "tasks", "console" and "properties"
  • Select "console"
Step 10 - Change build command from "make" to "mingw32-make"
  • properties > c/c++ build
  • deselect "use default build command"
  • change "make" to "mingw32-make"
Step 11 - Run
  • Click "run hello-c++.exe"
  • The "launch debug configuration selection" dialog will appear
  • Select "mingw gdb debugger"
  • Select "ok"
References

No comments:

Post a Comment