ubuntu下的netbeans中C++编程问题

软件和网站开发以及相关技术探讨
回复
linuxchen
帖子: 3
注册时间: 2008-09-13 16:42

ubuntu下的netbeans中C++编程问题

#1

帖子 linuxchen » 2008-09-13 16:45

在ubuntu下装了netbeans,安装了build-essential和netbeans的C++支持
然后写了一个测试程序

代码: 全选

#include <iostream>
using namespace std;
int main() {
cout<<"hi"<<endl;
return 0;
}
编译一下提示
在 /home/sunshine/NetBeansProjects/first_C 中运行 "/usr/bin/make -f Makefile CONF=Debug"

/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/home/sunshine/NetBeansProjects/first_C'
mkdir -p build/Debug/GNU-Linux-x86
c -g -o build/Debug/GNU-Linux-x86/newmain.o newmain.cc
make[1]: c:命令未找到
make[1]: [build/Debug/GNU-Linux-x86/newmain.o] 错误 127 (忽略)
mkdir -p dist/Debug/GNU-Linux-x86
o dist/Debug/GNU-Linux-x86/first_c build/Debug/GNU-Linux-x86/newmain.o
make[1]: o:命令未找到
make[1]: [dist/Debug/GNU-Linux-x86/first_c] 错误 127 (忽略)
make[1]: Leaving directory `/home/sunshine/NetBeansProjects/first_C'

生成 成功。 退出值 0。
请问一下是怎么回事,我该怎么办?
gml520
帖子: 41
注册时间: 2008-03-12 12:41
来自: 福建

Re: ubuntu下的netbeans中C++编程问题

#2

帖子 gml520 » 2008-10-19 12:53

没有安装完make
bbsunchen
帖子: 6
注册时间: 2008-09-13 15:35

Re: ubuntu下的netbeans中C++编程问题

#3

帖子 bbsunchen » 2008-10-28 14:09

但是我应该怎么装make啊,我已经下载了make并且安装了,我的Anjute都能够正确运行
回复