美文网首页技术文
How to build C++ IDE on Windows

How to build C++ IDE on Windows

作者: 龙河 | 来源:发表于2016-11-23 18:48 被阅读14次

As we all konwn, it's easy to develop C++ project on linux, there so many powerful open source libraries, but how to use gcc and g++ on WindowsNT platform?

1. eclipse install

eclipse with CDT package can be found from USTC mirror.
https://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/
don't forget install java runtime enviroment(jre)

2. msys2 install

msys2 can be found here
https://mirrors.ustc.edu.cn/msys2/distrib/
https://lug.ustc.edu.cn/wiki/mirrors/help/msys2
or
https://mirrors.tuna.tsinghua.edu.cn/msys2/distrib/
https://mirrors.tuna.tsinghua.edu.cn/help/msys2/
after install and set software source, use those command to update and install gcc

pacman -Syu
pacman -S gcc mingw-w64-x86_64-gcc gdb mingw-w64-x86_64-gdb

3. set path enviroment

add MINGW_HOME to you path enviroment which value is your msys2 mingw install home dir C:\msys64\mingw64

4. create project

Ctrl+n>>C++ project>>Toolchain: MinGW GCC
happy coding.

相关文章

网友评论

    本文标题:How to build C++ IDE on Windows

    本文链接:https://www.haomeiwen.com/subject/pruvpttx.html