gpt4 book ai didi

c++ - Windows 中的 Eclipse Ganymede 和 MinGW

转载 作者:可可西里 更新时间:2023-11-01 09:41:51 26 4
gpt4 key购买 nike

我正在尝试让 eclipse 与 MinGW 一起工作。我做了以下事情:

  • 为 eclipse 下载了 CDT。
  • 安装了 MinGW。
  • 将 C:\MinGW\bin 添加到我的路径中。
    打开命令提示符 (CMD) 并输入 g++ 或类似命令即可正常工作。
  • 我运行 eclipse,创建一个“新 C++ 项目”,然后只看到“其他工具链”选项。

百万 教程说eclipse 应该自己识别MinGW。它没有,我不知道该怎么办。我已经尝试在几乎所有可能的订单中重新安装所有内容。仍然没有运气。

我还注意到一些教程说了一些关于创建“托管 C++ 项目”的内容。我没有这样的选择,我得到的只是“C++ 项目”和“C 项目”

编辑:我有 eclipse ganymede,windows x86_64,版本 3.4.2
http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php

运行“面向 C/C++ 开发人员的 Eclipse IDE”失败,因为没有适用于 Windows 的 x64 版本。 x86版本还需要安装x86 JAVA,安装两个版本的java,过去很麻烦。

最佳答案

在 Ganymede 中设置 MinGW 的说明位于 here .

The following are instructions and links on how to install the current version of MinGW. Note that these links may become inaccurate over time as new versions of MinGW components are introduced. Please check the MinGW File Release section for the latest versions.

  1. Download and run the MinGW setup program, MinGW-5.1.3.exe.
  2. Select download and install the MinGW base tools and the g++ compiler. You may select the Current or Candidate version of these tools. You may also install any of the other available compilers as well.

    Do not install the MinGW Make feature as the MSYS version of make from step 5 is a more complete implementation of make.

  3. The MinGW setup program currently does not install the gdb debugger. To install the debugger, download the file from the following location: gdb-6.6.tar.bz2
  4. Extract the contents of the file gdb-6.6.tar.bz2 to the same location where you installed MinGW.
  5. If you want to use Makefile projects, download and run the setup program from the following location: MSYS-1.0.10.exe. MSYS provides an implementation of make and related command line tools. This is not required for other types of projects with the MinGW toolchain, which use CDT's internal build tools to perform the build.

按照这个过程解决了我遇到的所有问题。

关于c++ - Windows 中的 Eclipse Ganymede 和 MinGW,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/871644/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com