内部生成器:无法运行程序“g ++”:系统找不到指定的文件 [英] Internal Builder: Cannot run program "g++": The system cannot find the file specified

查看:304
本文介绍了内部生成器:无法运行程序“g ++”:系统找不到指定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

****** 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 build(cygwin安装了所需的软件包)

上面的错误来了,构建失败!

I am new to eclipse, on windows XP, want to run c/c++ progms + linux build (cygwin is installed with needed packages)
Above said error is coming and builds fails! Please kindly suggest.

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

appends to path env variable as e:\cygwin\bin;

这是参考资料:

alt text http://www.freeimagehosting.net/uploads/f1d71ae208.gif

推荐答案

您是如何在Eclipse CDT中设置Cygwin工具链

(来自 Alex Wu Alex的技术博客中的精彩博文)

How did you setup your Cygwin toolchain in your Eclipse CDT?
(from the Alex Wu's excellent blog post in Alex's Tech Blog)


1 /正确安装Cygwin,需要以下软件包:

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)




您可以使用 cygcheck -c 命令检查您的cygwin安装

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


2 /添加%cygwin%\bin 到您的env code>,然后打开eclipse。您将发现当您打开一个新的c / cpp项目向导时,将显示cygwin工具链。

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.

3 /配置GDB。

转到 Windows-> Preference-> C / C ++ - >调试 - >常见来源查找

添加以下'路径映射':

Go to Windows->Preference->C/C++ -> Debug -> Common Source Lookup.
Add following 'Path mapping':

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

这篇关于内部生成器:无法运行程序“g ++”:系统找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆