基于Eclipse IDE 2025-03 版本搭建Windows C++ 开发环境

1、参考基于Windows下的eclipse的C++开发环境搭建学习了环境搭建,并正常使用。

2、问题:我在使用过程,我发现首次运行,要手动build,然后run as local;后面再修改代码就可以随时运行了。

3、工具不顺手,那就多查查资料,查看官网后,我发现,官网说明如下:

Windows

For windows, MinGW and Cygwin are the two main platform choices for acquiring the GNU toolchain. It is important to understand the difference between them. Cygwin produces executables that use the Cygwin POSIX runtime. Note that this runtime is GPL licensed. MinGW produces native Windows executables that do not require a separate runtime.

  • For MinGW, it is recommended to use the MSYS2 software distribution. The CDT will automatically detect tools that are installed using the MSYS2 package manager. Download and run the latest MSYS2 installer by following instructions on the MSYS2 Getting Started page. When you reach the UCRT64 environment prompt, use the following commands to install individual tools:

    ToolInstallation commandNotes
    clangpacman -S mingw-w64-ucrt-x86_64-clangProvides the LLVM with Clang toolchain
    clangdpacman -S mingw-w64-ucrt-x86_64-clang-tools-extraRequired by the C/C++ Editor (LSP)
    cmakepacman -S mingw-w64-ucrt-x86_64-cmakeRequired for building CMake projects
    gccpacman -S mingw-w64-ucrt-x86_64-gccProvides the MinGW GCC toolchain
    gdbpacman -S mingw-w64-ucrt-x86_64-gdbRequired for debugging
    makepacman -S makeRequired for building Managed Build projects
    ninjapacman -S mingw-w64-ucrt-x86_64-ninjaRequired for building CMake projects

4、基于官网,就需要下载MSYS2 并按照上表安装即可,不需要配置环境变量等。

5、安装MSYS2也比较简单,参考官方文档一步一步安装即可。

6、实际使用感受,创建项目就使用Cmake project即可,直接运行即可,很方便。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值