gpt4 book ai didi

eclipse - 内部生成器 : Cannot run program "g++": The system cannot find the file specified

转载 作者:行者123 更新时间:2023-12-02 18:36:41 27 4
gpt4 key购买 nike

****** Internal Builder is used for build               ******
g++ -ot1.o ..\t1.cpp
Internal Builder: Cannot run program "g++": The system cannot find the file specified.

Build error occurred, build is stopped

我是 eclipse 新手,在 Windows XP 上,想要运行 c/c++ progms + linux 构建(cygwin 已安装所需的软件包)
上面说的错误即将到来并且构建失败!请大家多多指教。

编辑:附加到路径环境变量 e:\cygwin\bin;

此供引用:

alt text

最佳答案

你怎么样setup your Cygwin toolchain in your Eclipse CDT
(摘自 Alex WuAlex's Tech Blog 中的优秀博客文章)

1/ Install the Cygwin properly, you need following packages:

binutils
gcc
gcc-core
gcc-g++
gcc-mingw-core
gcc-mingw-g++
make
gdb (needed if you want to support debug in eclipse)

you can check your cygwin installation using the 'cygcheck -c' command

alt text

2/ Add %cygwin%\bin to your env PATH, then open the eclipse. you will find the cygwin tool chain will be shown when you open a new c/cpp project wizard.

alt text

3/配置GDB。

转至Windows->首选项->C/C++ -> 调试 -> 通用源代码查找
添加以下“路径映射”:

\cygdrive\c -> c:\
\cygdrive\d -> d:\
other drives if any .......

alt text

关于eclipse - 内部生成器 : Cannot run program "g++": The system cannot find the file specified,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2606740/

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