Eclipse CDT无法构建-不确定出了什么问题(包括控制台) [英] Eclipse CDT can't build - not sure what's wrong (console included)

查看:156
本文介绍了Eclipse CDT无法构建-不确定出了什么问题(包括控制台)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在将尝试给c ++看看这种语言必须提供的功能。我在设置时遇到了一些麻烦。我已经下载了Eclipse CDT,并遵循了该指南: http:// www .dcs.vein.hu / bertok / oktatas / cpp_by_eclipse / eclipse_for_cpp_on_windows.html#Install_gdb

I'm now going to give c++ a try to see what this language have to offer. I'm having some trouble setting it all up though. I have downloaded Eclipse CDT and followed this guide : http://www.dcs.vein.hu/bertok/oktatas/cpp_by_eclipse/eclipse_for_cpp_on_windows.html#Install_gdb

我正在使用Windows 7 64位。

I am using Windows 7 64bit.

我以前从未安装过编译器,而且我不确定自己到底在做什么错。当我尝试运行程序时,它给我一个启动失败。找不到二进制文件错误。但是,没有二进制文件文件夹。我试过构建,它加载了一段时间,但什么都没有发生。

I have never installed a compiler before, and I'm not sure what exactly I am doing wrong. It gives me an "Launch failed. no binary found" error when I try to run my program. However there is no binaries folder. I have tried building, it loads for a while, but nothing really happens.

任何想法该怎么做?我是c ++的新手,请耐心等待,让我知道我是否缺少任何东西:)

Any idea what to do? I am completely new at c++ so please be patient and let me know if there's anything I am missing :)

eclipse中的控制台显示以下内容:

The console in eclipse says the following:

为项目Test2进行配置调试**

Build of configuration Debug for project Test2 **

使用内部Builder进行构建** cl / c / EHs / MD / Zi / nologo /Fospam.obj ..\spam.cpp内部生成器:无法运行程序 cl(在目录 C:\cppworkspace\Test2\Debug中):CreateProcess error = 2,Den Angivne fil blev ikke fundet错误:在PATH中找不到程序 cl

Internal Builder is used for build ** cl /c /EHs /MD /Zi /nologo /Fospam.obj ..\spam.cpp Internal Builder: Cannot run program "cl" (in directory "C:\cppworkspace\Test2\Debug"): CreateProcess error=2, Den angivne fil blev ikke fundet Error: Program "cl" is not found in PATH

PATH = [C:\oraclexe\app\oracle\product\10.2.0 \server\bin; C:\Program Files(x86)\NVIDIA Corporation\PhysX\Common; C:\Windows\system32; C:\Windows; C:\Windows\System32 \Wbem; C:\Windows\System32\WindowsPowerShell\v1.0\; C:\Program Files(x86)\EgisTec\MyWinLocker 3\x86; C:\Program Files( x86)\EgisTec\MyWinLocker 3\x64; C:\程序文件(x86)\ ATI Technologies\ATI.ACE\Core-Static; C:\程序文件\TortoiseSVN\bin; c:\Program档案( x86)\Microsoft SQL Server\100\Tools\Binn\; c:\Program Files\Microsoft SQL Server\100\Tools\Binn\c:\Program Files\ Microsoft SQL Server\100\DTS\Binn\; c:\Program Files(x86)\Microsoft SQL Server\100\工具\Binn\VSShell\Common7\IDE\; c:\Program Files(x86)\Microsoft SQL Server\100\DTS\Binn; C:\MinGW\bin]发生生成错误,停止了生成,耗时:156 ms。

PATH=[C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\EgisTec\MyWinLocker 3\x86;C:\Program Files (x86)\EgisTec\MyWinLocker 3\x64;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\TortoiseSVN\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\MinGW\bin] Build error occurred, build is stopped Time consumed: 156 ms.

推荐答案

问题很简单,Eclipse找不到您的编译器。

The problem is simple enough, Eclipse can't find your compiler.

在引述的冗长路径上,我看不到 c:\MinGW\bin,因此我猜测您在安装MinGW部分下的第4步遇到了问题。

On the lengthy PATH that is quoted I don't see 'c:\MinGW\bin' so I'm guessing you had problems with step 4 under section install MinGW.

我已经说了很多,我不认为Eclipse是开发C ++的很好环境,我也不认为MinGW是特别好的编译器。我强烈建议您看一下Visual C ++ 2010 Express,您可以从这里 http://www.microsoft.com/visualstudio/zh-cn/products/2010-editions/express

Having said all that I don't think Eclipse is a very good environment for developing C++ and I don't think MinGW is a particularly good compiler. I'd seriously recommend you take a look at Visual C++ 2010 Express, which you can download from here http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express

EDIT

好,现在我看到的是'c:\MinGW\bin',为此深表歉意。我认为可能的解释是您选择了错误的工具链。 Eclipse认为您想使用Visual C ++进行构建,但是您已经下载了MinGW。但是真正获得Visual C ++ 2010 Express并忘记了Eclipse,就容易得多。

OK now I do see 'c:\MinGW\bin', so apologies for that. I think the likely explanation is that you have selected the wrong 'tool chain'. Eclipse thinks you want to build with Visual C++ but you have downloaded MinGW. But really get Visual C++ 2010 Express and forget about Eclipse, it's much easier.

这篇关于Eclipse CDT无法构建-不确定出了什么问题(包括控制台)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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