用GVIM打开任意一个FIG,make之后会显示:
!make 2>&1| tee /tmp/v467710/1
make: *** 没有指明目标并且找不到 makefile。 停止。
(1 / 1): make: *** 没有指明目标并且找不到 makefile。 停止。
同一目录中已经有写好的Makefile了
怎么回事阿?菜鸟请教
用GVIM运行《UNIX环境高级编程》的源代码的出现的问题
-
- 帖子: 17
- 注册时间: 2009-02-01 11:29
-
- 帖子: 17
- 注册时间: 2009-02-01 11:29
Re: 用GVIM运行《UNIX环境高级编程》的源代码的出现的问题
求救阿!!1。。。。。
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
Re: 用GVIM运行《UNIX环境高级编程》的源代码的出现的问题
不要在vim下运行试试
^_^ ~~~
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
-
- 帖子: 17
- 注册时间: 2009-02-01 11:29
Re: 用GVIM运行《UNIX环境高级编程》的源代码的出现的问题
还是一样诶
谁可以告诉我怎么改makefile,让它能够在ubuntu中用。
makefile内容:
DIRS = lib sockets advio call calld daemons datafiles db environ exercises \
file ipc ipp lock mycat open opend opend.fe open.fe proc pty \
sess signals std stdio streams termios threadctl threads
all:
$(MAKE) `./systype.sh`
clean:
for i in $(DIRS); do \
(cd $$i && $(MAKE) -f `../systype.sh`.mk clean) || exit 1; \
done
freebsd:
for i in $(DIRS); do \
(cd $$i && $(MAKE) -f freebsd.mk) || exit 1; \
done
linux:
for i in $(DIRS); do \
(cd $$i && $(MAKE) -f linux.mk) || exit 1; \
done
macos:
for i in $(DIRS); do \
(cd $$i && $(MAKE) -f macos.mk) || exit 1; \
done
solaris:
for i in $(DIRS); do \
(cd $$i && $(MAKE) -f solaris.mk) || exit 1; \
done
谁可以告诉我怎么改makefile,让它能够在ubuntu中用。
makefile内容:
DIRS = lib sockets advio call calld daemons datafiles db environ exercises \
file ipc ipp lock mycat open opend opend.fe open.fe proc pty \
sess signals std stdio streams termios threadctl threads
all:
$(MAKE) `./systype.sh`
clean:
for i in $(DIRS); do \
(cd $$i && $(MAKE) -f `../systype.sh`.mk clean) || exit 1; \
done
freebsd:
for i in $(DIRS); do \
(cd $$i && $(MAKE) -f freebsd.mk) || exit 1; \
done
linux:
for i in $(DIRS); do \
(cd $$i && $(MAKE) -f linux.mk) || exit 1; \
done
macos:
for i in $(DIRS); do \
(cd $$i && $(MAKE) -f macos.mk) || exit 1; \
done
solaris:
for i in $(DIRS); do \
(cd $$i && $(MAKE) -f solaris.mk) || exit 1; \
done
- Aprilboy
- 帖子: 31
- 注册时间: 2009-05-15 14:52
Re: 用GVIM运行《UNIX环境高级编程》的源代码的出现的问题
你要先修改Make.defines.linux这个文件中work的路径,具体看一看README
然后再make
但是我出现了getenv1.c:4: 错误: ‘ARG_MAX’未声明(不在函数内)
困惑中
然后再make
但是我出现了getenv1.c:4: 错误: ‘ARG_MAX’未声明(不在函数内)
困惑中
- Aprilboy
- 帖子: 31
- 注册时间: 2009-05-15 14:52
Re: 用GVIM运行《UNIX环境高级编程》的源代码的出现的问题
刚刚在/usr/include/limits.h里面添加了一个
#define ARG_MAX 1024
然后make就好了
#define ARG_MAX 1024
然后make就好了