看板Maple
标 题Re: maple在redhat7.3上的一个问题....
发信站庄中资研搔手弄资 (Sun Sep 22 02:40:49 2002)
转信站Ptt!news.cs.nthu!HCSHCSC
※ 引述《Hsiao (大家一起耍低落 ...)》之铭言:
> ※ 引述《[email protected] (^^ @@ ><" ** ^^||)》之铭言:
> > 我在/home/bbs/src/lib目录里,执行 make 出现下面情形
> > gcc -O2 -s -pipe -fomit-frame-pointer -Wunused -I../include -c f_map.c
> > f_map.c: In function `f_map':
> > f_map.c:31: `NULL' undeclared (first use in this function)
> > f_map.c:31: (Each undeclared identifier is reported only once
> > f_map.c:31: for each function it appears in.)
> > make: *** [f_map.o] Error 1
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > 我也如何决解呢?
> ~/src/lib/f_map.c
> 前面加一行
> #include <stdio.h>
> make clean OS-TYPE install
顺带一提 ...
用RH 7.x应该都是改下面这些东西 ...
~/src/lib/f_map.c加个include <stdio.h>
~/src/include/bbs.h把<sys/time.h>改成<time.h>
~/src/maple/menu.c加个int m_register(void);
int u_register(void);
int m_trace(void);
~/src/util/webx.c加个include <time.h>
--
※ Origin: 搔 手 弄 资 <csc.hcsh.tpc.edu.tw>
◆ From: 61-216-110-59.HINET-IP.hinet.net