Eclipse CDT错误:“make:*** [src / test2.o]错误127” [英] Eclipse CDT error: "make: *** [src/test2.o] Error 127"
问题描述
在Windows XP上我安装了Eclipse CDT。我安装了cygwin包括make,gcc,g ++和gdb。我已经添加了C:\cygwin\bin到Windows路径变量。
当我在Eclipse中创建默认HelloWorld项目并尝试构建,以下文字在控制台中:
make:echo:Command找不到
make:*** [src / test3.o]错误127
$ b b
如果我在命令行尝试make,那么一切都很好。
其他线索:
- 请注意,我添加了C:\cygwin\bin到路径而不是C:\cygwin\usr\bin,因为我没有找到我的GNU工具链在\usr\ bin但在\bin中。这似乎与一些在线文档矛盾。陌生人仍然,当我在命令窗口(不是cygwin bash)中键入
,它会读取/ usr / bin / make!
- 我可能安装了一个新版本的cygwin旧版本。我注意到一些关于这个的警告,但是因为cygwin一旦完成,似乎没有什么错误(并且,因为从cygwin bash工作确定),我没有深入这里。
- Note that I added C:\cygwin\bin to the path rather than C:\cygwin\usr\bin because I didn't find my GNU toolchain in \usr\bin but in \bin. This seems to contradict some online documentation. Stranger still, when I type
which make
in the command window (not cygwin bash), it reads /usr/bin/make ! - I might have installed a new version of cygwin over an old version. I noticed some warnings about this, but since nothing seemed to be wrong with cygwin once complete (and further, since make from the cygwin bash works ok), I didn't dig deeper here.
(注意:有一个相关问题
问题是没有帮助 echo
二进制文件。找到 echo
,并将其添加到您的PATH环境变量中。
On Windows XP I've installed Eclipse CDT. I've installed cygwin including make, gcc, g++, and gdb. I've added C:\cygwin\bin to the windows path variable.
When I create the default HelloWorld project in Eclipse and try to build, I get the following text in the console:
make all
make: echo: Command not found
make: *** [src/test3.o] Error 127
If I try make at the command line, then all's well.
Other clues:
(Note: there is a related question that I didn't find helpful. Perhaps it's answer was over my head.)
The problem is that there is no echo
binary in your PATH. Locate echo
, and add it to your PATH environment variable.
这篇关于Eclipse CDT错误:“make:*** [src / test2.o]错误127”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!