LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1659|回复: 2

gsopcast-0.4.0 make时出错

[复制链接]
发表于 2008-6-20 16:10:55 | 显示全部楼层 |阅读模式
make  all-recursive
make[1]: Entering directory `/home/kth/down/gsopcast-0.4.0'
Making all in po
make[2]: Entering directory `/home/kth/down/gsopcast-0.4.0/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/kth/down/gsopcast-0.4.0/po'
Making all in src
make[2]: Entering directory `/home/kth/down/gsopcast-0.4.0/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\"    -g -O2 -MT fork.o -MD -MP -MF .deps/fork.Tpo -c -o fork.o fork.cc
fork.cc: In function ‘gboolean handle_stdout_pipe(GIOChannel*, GIOCondition, void*)’:
fork.cc:62: 错误:‘strstr’在此作用域中尚未声明
fork.cc: In function ‘void fork_sop(char*)’:
fork.cc:118: 错误:‘strdup’在此作用域中尚未声明
fork.cc:125: 警告:不建议使用从字符串常量到‘char*’的转换
fork.cc:141: 警告:不建议使用从字符串常量到‘char*’的转换
fork.cc: In function ‘void fork_player()’:
fork.cc:182: 错误:‘strdup’在此作用域中尚未声明
fork.cc:186: 错误:‘strtok_r’在此作用域中尚未声明
fork.cc:189: 错误:‘strcat’在此作用域中尚未声明
fork.cc: In function ‘void kill_player()’:
fork.cc:254: 错误:‘strcat’在此作用域中尚未声明
fork.cc:257: 错误:‘strcmp’在此作用域中尚未声明
fork.cc:276: 错误:‘memchr’在此作用域中尚未声明
fork.cc:279: 错误:‘strstr’在此作用域中尚未声明
make[2]: *** [fork.o] 错误 1
make[2]: Leaving directory `/home/kth/down/gsopcast-0.4.0/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/kth/down/gsopcast-0.4.0'
make: *** [all] 错误 2


FC9
发表于 2008-6-21 04:57:26 | 显示全部楼层

缺少include

vi src/header.h
在#include <sys/types.h>
下面添加#include <string.h>
就可以了

没有包含string.h文件

http://www.mawudi.cn/html/45.html
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-21 08:36:19 | 显示全部楼层
Post by netmwd;1865037
vi src/header.h
在#include <sys/types.h>
下面添加#include <string.h>
就可以了

没有包含string.h文件

http://www.mawudi.cn/html/45.html


     谢谢
           已解决..
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表