make:g ++:找不到命令 [英] make: g++: Command not found

查看:104
本文介绍了make:g ++:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我检查了类似的帖子,任何人都可以解决我的问题.我很简单,但是我对Eclipse不熟悉.我正在尝试举一个简单的例子,而我遇到了这个问题.

I've checked similar posts and anyone solve my problem. I's very simple but I'm new with eclipse. I'm trying to make a simple example and I'm having this problem.

make文件就是这个

the make file is just this

all: hello.exe

clean:
    rm Hello.o Hello.exe

hello.exe: hello.o
    g++ -g -o hello.exe hello.o

hello.o:
    g++ -c -g main.cpp

我收到此错误"make:g ++:找不到命令"

And I get this error "make: g++: Command not found"

感谢您的帮助.

推荐答案

您需要从GNU安装开发工具.我假设您在Windows上,在这种情况下,您有两个选择: cygwin 包括了g ++ .我对mingw不太熟悉,但是

You need to install the development tools from GNU. I assume you're on windows, in which case you have two options: cygwin and mingw. The former includes g++ out of the box. I'm less familiar with mingw, but the C++ Standard library appears to, also, be available.

请参见这些安装说明,我建议从步骤1开始,如果可能的话.

See these installation instructions, I'd recommend starting from step 1, if at all possible.

这篇关于make:g ++:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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