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.