- Cygwin, which is a Linux-like system environment for Windows.
- MinGW, which is a minimal GNU development environment for Windows.
After installation of MinGW, we need to setup the system environment for Eclipse to search for compilers:
- SET PATH = D:\MinGW\bin;%PATH%
- SET LIBRARY_PATH = D:\MinGW\lib
- SET C_INCLUDE_PATH = D:\MinGW\include
- SET CPLUS_INCLUDE_PATH = D:\MinGW\include\c++\3.2.3;D:\MinGW\include\c++\3.2.3\mingw32;D:\MinGW\include\c++\3.2.3\backward;D:\MinGW\include
3. Create a new C/C++ project:
4. Run the project and see the result:
No comments:
Post a Comment