免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 4855 | 回复: 27
打印 上一主题 下一主题

西陆WEBMUD LINUX6.2下编译不通过 求教 提供TELNET. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-05-09 14:23 |只看该作者 |倒序浏览
telnet 61.49.120.131
user:root
pass:china


源码放置位置
/home/mud/soft/webmud_source

/home/mud/soft/  有相关软件

[root@Net webmud_source]# make
g++   -g -DHAVE_CONFIG_H -I/usr/include/mysql -I. -D__cplusplus -D_REENTRANT -D_
_JAVACLIENT__ -D_THREAD_SAFE -pthread -c  -fPIC -DPIC  -I/usr/include -static -p
thread     -o login1.o -c login1.cpp
In file included from login1.cpp:30:
/usr/include/mysql/mysql.h:17: conflicting types for `typedef char * string'
/usr/include/g++-2/string:9: previous declaration as `typedef class basic_string
<char,string_char_traits<char>;,__default_alloc_template<true,0>; >; string'
login1.cpp: In function `int main(int, char **)':
login1.cpp:104: warning: default argument of negative value `-1' to `long unsign
ed int'
login1.cpp:110: warning: default argument of negative value `-1' to `long unsign
ed int'
login1.cpp: In function `class YString comm39(const class YString &, const class
YString &, const class YString &, const class YString & = ""':
login1.cpp:912: warning: initialization to `char *' from `const char *' discards
const
login1.cpp:913: warning: passing `char *' as argument 1 of `URLDecode(unsigned c
har *)' changes signedness
login1.cpp:955: warning: passing `const YString' as `this' argument of `class YS
tring & YString:perator =(const class YString &' discards const
login1.cpp:956: warning: passing `const YString' as `this' argument of `class YS
tring & YString:perator =(const class YString &' discards const
make: *** [login1.o] Error 1

论坛徽章:
0
2 [报告]
发表于 2005-05-09 14:25 |只看该作者

西陆WEBMUD LINUX6.2下编译不通过 求教 提供TELNET.

该软件要求的编译环境
软件版本
Liunx 6.2
g++ 2.95.2


各种文件的设置路径


存放文件  路径
webmud   /home/mud/bin
mud121   /var/www/mud
login    /var/www/cgi-bin/mud
webmud.conf /var/www/cgi-bin/mud和/home/mud/bin下各一个
register  /var/www/cgi-bin/mud
index.html /var/www/html/mud/
各种目录和文件的属性
common目录下
quest   目录  里边放的是任务     
wugong.profile  武功文件,存放武功名称
emote.profile   表情文件,存放chat*等表示的表情
quest.profile   任务文件,存放各quest目录下的npc的任务的文件的名?   
fifo  权限777 写入临时文件            
npc   存放npc的属性目录
playercount.dat  存放用登陆户的的文件
thing  存放物品的目录
denied.txt  存放禁止登陆的人名的文件
newplayer.profile  存放新玩家数据的文件
player  存放用户数据的目录
room    存放房间数据的目录

论坛徽章:
0
3 [报告]
发表于 2005-05-09 14:26 |只看该作者

西陆WEBMUD LINUX6.2下编译不通过 求教 提供TELNET.

MAKEFILE的内容

#调试
#CFLAGS := -g -ggdb -Wall -DHAVE_CONFIG_H -I/usr/include/g++-2 -I/usr/include -I/usr/include/mysql -I. -D__JAVACLIENT__ -D_REENTRANT -D_THREAD_SAFE -pthread -c  -fPIC -DPIC

#时间分析
#PG= -pg

#普通
CFLAGS := $(PG) -g -DHAVE_CONFIG_H -I/usr/include/mysql -I. -D__cplusplus -D_REENTRANT -D__JAVACLIENT__ -D_THREAD_SAFE -pthread -c  -fPIC -DPIC
#CFLAGS := $(PG) -g -DHAVE_CONFIG_H -I/usr/include/g++-2 -I/usr/include -I/usr/include/mysql -I. -D_REENTRANT -D__JAVACLIENT__ -D_THREAD_SAFE -pthread -c  -fPIC -DPIC


#优化
#CFLAGS :=  -O3 -Wall -DHAVE_CONFIG_H -I/usr/include/g++-2 -I/usr/include -I/usr/include/mysql -I. --D__JAVACLIENT__ D_REENTRANT -D_THREAD_SAFE -pthread -c  -fPIC -DPIC

THREADFLAGS := -static -pthread   
MYSQLFLAGS := -I/usr/include/mysql   
MYSQLLIBS :=  -lmysqlclient
CRYPTLIBS := -lcrypt
POSIX1BLIBS :=
#POSIX1BLIBS := ../posix1b/semaphore.o
CC := g++



SOURCE := autobackup.cpp yfiledir.cpp ylocalfiledir.cpp yftpfiledir.cpp ysettings.cpp yautobackup.cpp yerr.cpp

WEBMUDOBJS := ymudobject.o yproperty.o ypropertygroup.o yobjectgroup.o ytimer.o threadkey.o thread.o \
              ychat.o yabstractactor.o yabstractroom.o yabstractthing.o yuser.o yusermanager.o \
              yplayermanager.o ywebmud.o yfifo.o yfifo_unix.o yactor.o yplayer.o ynpc.o yroom.o ything.o \
              yerr.o ymudsettings.o yxiluuser.o ysession.o ysessionmanager.o yxiluusermanager.o \
              ymap.o ystring.o ystringlist.o ydatetime.o ycommand.o loadobject.o webmud.o \
              ycommandtranslate.o ycookroom.o yretiringroom.o ybankroom.o ypawnroom.o ylogfile.o yemote.o \
              yworkroom.o ynewplayerroom.o yyelianroom.o yteachernpc.o ywugong.o yquest.o ybetraynpc.o \
              ycollectroom.o yofferrewardnpc.o ystopwatch.o ycounter.o ydestroything.o ycomm.o\
              ymarrynpc.o ymoneynpc.o yjollityroom.o ymarryroom.o yjailroom.o ydoorroom.o yspecialnpc.o ywizard.o \
              yloadroom.o yliandanroom.o ychatmanager.o yfaction.o ylingwuroom.o ytailplayer.o yhidedoorroom.o

LOGINOBJS :=yfifo.o yerr.o ymudsettings.o ystring.o writecgi.o readcgi.o login.o ylogfile.o ypropertygroup.o

LOGIN1OBJS :=yfifo.o yfifo_unix.o yerr.o ymudsettings.o ystring.o writecgi.o readcgi.o login1.o ylogfile.o ypropertygroup.o ydatetime.o

LOGINTESTOBJS :=yfifo.o yerr.o ymudsettings.o ystring.o writecgi.o readcgi.o logintest.o ylogfile.o ypropertygroup.o

LOGIN_NSOBJS :=yfifo.o yerr.o ymudsettings.o ystring.o writecgi.o readcgi.o login_ns.o ylogfile.o ypropertygroup.o

COMMANDOBJS :=yfifo.o yerr.o ymudsettings.o ystring.o writecgi.o readcgi.o command.o ylogfile.o ypropertygroup.o ystopwatch.o ycounter.o ydatetime.o

FIFOBUFFEROBJS :=threadkey.o thread.o yfifo.o ystring.o fifobuffer.o ylogfile.o yerr.o ystopwatch.o ycounter.o

CCXXOBJS := mutex.o semaphore.o friends.o

WEBMUD_H :=webmud.h global.h debug.h ymudobject.h ystring.h ystringlist.h yproperty.h yobjectgroup.h ypropertygroup.h \
           ytimer.h yabstractactor.h yabstractroom.h ychat.h yabstractthing.h yuser.h ywebmud.h \
           yusermanager.h yplayermanager.h yfifo.h yactor.h yplayer.h ynpc.h yroom.h ything.h yerr.h \
           ymudsettings.h ysessionmanager.h ysession.h yxiluusermanager.h yxiluuser.h ymap.h ydatetime.h \
           ycommand.h loadobject.h ycookroom.h yretiringroom.h ybankroom.h ypawnroom.h ylogfile.h yemote.h \
           yworkroom.h ynewplayerroom.h yjollityroom.h ymarryroom.h yteachernpc.h ywugong.h yquest.h yfifo_shm.h \
           ystopwatch.h ycounter.h ymarrynpc.h ymoneynpc.h ytailplayer.h yhidedoorroom.h \
           yyelianroom.h ydoorroom.h ydestroything.h ycomm.h yloadroom.h yliandanroom.h ychatmanager.h yfaction.h ylingwuroom.h


LIBS := -L/usr/lib -lpthread

INCLUDES := -I/usr/include

THREADOBJS :=

all : webmud login1 register

webmud : $(WEBMUDOBJS)
        $(CC) $(THREADFLAGS) $(LIBS) -o webmud $(POSIX1BLIBS) $(WEBMUDOBJS) $(CCXXOBJS) $(PG)

messageserver : $(MESSAGESERVEROBJS)
        $(CC) $(THREADFLAGS) $(LIBS) -o messageserver $(MESSAGESERVEROBJS) $(CCXXOBJS) $(POSIX1BLIBS)

command : $(COMMANDOBJS)
        $(CC) $(THREADFLAGS) $(LIBS) -o command $(COMMANDOBJS) $(CCXXOBJS) $(POSIX1BLIBS)

login : $(LOGINOBJS)
        $(CC) $(THREADFLAGS) $(LIBS) -o login $(LOGINOBJS) $(CCXXOBJS) $(POSIX1BLIBS)

login1 : $(LOGIN1OBJS)
        $(CC) $(THREADFLAGS) $(LIBS) -o login1 $(LOGIN1OBJS) $(CCXXOBJS) $(POSIX1BLIBS)

register : $(LOGIN1OBJS)
        $(CC) $(THREADFLAGS) -o register $(LOGIN1OBJS) $(CCXXOBJS) $(POSIX1BLIBS)  $(INCLUDES) $(LIBS) $(MYSQLLIBS)
       
logintest : $(LOGINTESTOBJS)
        $(CC) $(THREADFLAGS) $(LIBS) -o logintest $(LOGINTESTOBJS) $(CCXXOBJS) $(POSIX1BLIBS)

login_ns : $(LOGIN_NSOBJS)
        $(CC) $(THREADFLAGS) $(LIBS) -o login_ns $(LOGIN_NSOBJS) $(CCXXOBJS) $(POSIX1BLIBS)

fifobuffer : $(FIFOBUFFEROBJS)
        $(CC) $(THREADFLAGS) $(LIBS) -o fifobuffer $(FIFOBUFFEROBJS) $(CCXXOBJS) $(POSIX1BLIBS)

fifotest : fifotestw fifotestr

fifotestw : fifotestw.o yfifo.o ystring.o yerr.o
        $(CC) $(THREADFLAGS) $(LIBS) -o fifotestw fifotestw.o yfifo.o ystring.o yerr.o

fifotestr : fifotestr.o yfifo.o ystring.o yerr.o
        $(CC) $(THREADFLAGS) $(LIBS) -o fifotestr fifotestr.o yfifo.o ystring.o yerr.o

install :
        cp webmud.conf /home/httpd/cgi-bin/mud
        cp webmud.conf /home/mud/bin
        cp webmud /home/mud/bin
        cp messageserver /home/mud/bin
        cp login /home/httpd/cgi-bin/mud
        cp login1 /home/httpd/cgi-bin/mud
        cp register /home/httpd/cgi-bin/mud
        cp login_ns /home/httpd/cgi-bin/mud
        cp command /home/httpd/cgi-bin/mud

clean :
        rm -f *.o
        cp ../mutex.o .
        cp ../semaphore.o .
        cp ../friends.o .

newmemfile :
        rm /home/mud/memfile
        cp /home/mud/memfile.new /home/mud/memfile

ystring.o : ystring.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ystring.o -c ystring.cpp

ystringlist.o : ystringlist.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ystringlist.o -c ystringlist.cpp

ymudobject.o : ymudobject.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ymudobject.o -c ymudobject.cpp

yproperty.o : yproperty.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yproperty.o -c yproperty.cpp

ypropertygroup.o : ypropertygroup.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ypropertygroup.o -c ypropertygroup.cpp

yobjectgroup.o : yobjectgroup.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yobjectgroup.o -c yobjectgroup.cpp

ytimer.o : ytimer.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ytimer.o -c ytimer.cpp

threadkey.o : threadkey_unix.cpp thread.h config.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o threadkey.o -c threadkey_unix.cpp

thread.o : thread_unix.cpp thread.h config.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o thread.o -c thread_unix.cpp

ychat.o : ychat.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ychat.o -c ychat.cpp

yemote.o : yemote.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yemote.o -c yemote.cpp

yabstractactor.o : yabstractactor.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yabstractactor.o -c yabstractactor.cpp

yabstractroom.o : yabstractroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yabstractroom.o -c yabstractroom.cpp

yabstractthing.o : yabstractthing.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yabstractthing.o -c yabstractthing.cpp

yuser.o : yuser.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yuser.o -c yuser.cpp

yusermanager.o : yusermanager.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yusermanager.o -c yusermanager.cpp

yplayermanager.o : yplayermanager.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yplayermanager.o -c yplayermanager.cpp

ywebmud.o : ywebmud.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ywebmud.o -c ywebmud.cpp

yfifo_unix.o : yfifo_unix.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yfifo_unix.o -c yfifo_unix.cpp
       
#yfifo.o : yfifo_unix.cpp $(WEBMUD_H)
#        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yfifo.o -c yfifo_unix.cpp
#yfifo.o : yfifo.cpp $(WEBMUD_H)
#        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yfifo.o -c yfifo.cpp
yfifo.o : yfifo_shm.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yfifo.o -c yfifo_shm.cpp

fifotestw.o : fifotestw.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o fifotestw.o -c fifotestw.cpp

fifotestr.o : fifotestr.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o fifotestr.o -c fifotestr.cpp

ylogfile.o : ylogfile.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ylogfile.o -c ylogfile.cpp

socket.o : socket_unix.cpp thread.h config.h socket.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o socket.o -c socket_unix.cpp

yactor.o : yactor.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yactor.o -c yactor.cpp

yplayer.o : yplayer.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yplayer.o -c yplayer.cpp

ynpc.o : ynpc.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ynpc.o -c ynpc.cpp

yroom.o : yroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yroom.o -c yroom.cpp

ything.o : ything.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ything.o -c ything.cpp

ydestroything.o : ydestroything.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ydestroything.o -c ydestroything.cpp

yerr.o : yerr.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yerr.o -c yerr.cpp

ymudsettings.o : ymudsettings.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ymudsettings.o -c ymudsettings.cpp

yxiluuser.o : yxiluuser.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yxiluuser.o -c yxiluuser.cpp

ysession.o : ysession.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ysession.o -c ysession.cpp

ysessionmanager.o : ysessionmanager.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ysessionmanager.o -c ysessionmanager.cpp

yxiluusermanager.o : yxiluusermanager.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS) $(MYSQLFLAGS) -o yxiluusermanager.o -c yxiluusermanager.cpp

ymap.o : ymap.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ymap.o -c ymap.cpp

ydatetime.o : ydatetime.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ydatetime.o -c ydatetime.cpp

ycommand.o : ycommand.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ycommand.o -c ycommand.cpp

loadobject.o : loadobject.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o loadobject.o -c loadobject.cpp

webmud.o : webmud.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o webmud.o -c webmud.cpp

writecgi.o : writecgi.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o writecgi.o -c writecgi.cpp

readcgi.o : readcgi.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o readcgi.o -c readcgi.cpp

login.o : login.cpp readcgi.h writecgi.h ystring.h yfifo.h ymudsettings.h yerr.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o login.o -c login.cpp

login1.o : login1.cpp readcgi.h writecgi.h ystring.h yfifo.h ymudsettings.h yerr.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o login1.o -c login1.cpp

register.o : register.cpp readcgi.h writecgi.h ystring.h yfifo.h ymudsettings.h yerr.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o register.o -c register.cpp

logintest.o : logintest.cpp readcgi.h writecgi.h ystring.h yfifo.h ymudsettings.h yerr.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o logintest.o -c logintest.cpp

login_ns.o : login.cpp readcgi.h writecgi.h ystring.h yfifo.h ymudsettings.h yerr.h
        $(CC) -D__NETSCAPE__ $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o login_ns.o -c login.cpp

inaddr_unix.o : inaddr_unix.cpp $(WEBMUD_H) thread.h config.h socket.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o inaddr_unix.o -c inaddr_unix.cpp

messageserver.o : messageserver_unix.cpp ystring.h config.h macros.h thread.h socket.h yfifo.h ymudsettings.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o messageserver.o -c messageserver_unix.cpp

command.o : command.cpp readcgi.h writecgi.h ystring.h yfifo.h ymudsettings.h yerr.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o command.o -c command.cpp
       
fifobuffer.o : fifobuffer.cpp ystring.h yfifo.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o fifobuffer.o -c fifobuffer.cpp

ycommandtranslate.o : ycommandtranslate.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ycommandtranslate.o -c ycommandtranslate.cpp

ycookroom.o : ycookroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ycookroom.o -c ycookroom.cpp

yretiringroom.o : yretiringroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yretiringroom.o -c yretiringroom.cpp

ypawnroom.o : ypawnroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ypawnroom.o -c ypawnroom.cpp

ybankroom.o : ybankroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ybankroom.o -c ybankroom.cpp

yworkroom.o : yworkroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yworkroom.o -c yworkroom.cpp

ynewplayerroom.o : ynewplayerroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ynewplayerroom.o -c ynewplayerroom.cpp

ycollectroom.o : ycollectroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ycollectroom.o -c ycollectroom.cpp

yyelianroom.o : yyelianroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yyelianroom.o -c yyelianroom.cpp

ymarryroom.o : ymarryroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ymarryroom.o -c ymarryroom.cpp

yjollityroom.o : yjollityroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yjollityroom.o -c yjollityroom.cpp

yjailroom.o : yjailroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yjailroom.o -c yjailroom.cpp

ydoorroom.o : ydoorroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ydoorroom.o -c ydoorroom.cpp

yloadroom.o : yloadroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yloadroom.o -c yloadroom.cpp

yliandanroom.o : yliandanroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yliandanroom.o -c yliandanroom.cpp

ymoneynpc.o : ymoneynpc.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ymoneynpc.o -c ymoneynpc.cpp

ymarrynpc.o : ymarrynpc.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ymarrynpc.o -c ymarrynpc.cpp

yteachernpc.o : yteachernpc.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yteachernpc.o -c yteachernpc.cpp

ybetraynpc.o : ybetraynpc.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ybetraynpc.o -c ybetraynpc.cpp

yspecialnpc.o : yspecialnpc.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yspecialnpc.o -c yspecialnpc.cpp

yofferrewardnpc.o : yofferrewardnpc.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yofferrewardnpc.o -c yofferrewardnpc.cpp

ywugong.o : ywugong.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ywugong.o -c ywugong.cpp

yquest.o : yquest.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yquest.o -c yquest.cpp
       
ysemaphore.o : ysemaphore.c ysemaphore.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ysemaphore.o -c ysemaphore.c

globalnew.o : globalnew.cpp
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o globalnew.o -c globalnew.cpp

yalloc.o : yalloc.cpp yalloc.h
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yalloc.o -c yalloc.cpp

ystopwatch.o : ystopwatch.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ystopwatch.o -c ystopwatch.cpp

ycounter.o : ycounter.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ycounter.o -c ycounter.cpp

ycomm.o : ycomm.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ycomm.o -c ycomm.cpp

ywizard.o : ywizard.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ywizard.o -c ywizard.cpp

ychatmanager.o : ychatmanager.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ychatmanager.o -c ychatmanager.cpp

yfaction.o : yfaction.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yfaction.o -c yfaction.cpp

ylingwuroom.o : ylingwuroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ylingwuroom.o -c ylingwuroom.cpp

ytailplayer.o : ytailplayer.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o ytailplayer.o -c ytailplayer.cpp

yhidedoorroom.o : yhidedoorroom.cpp $(WEBMUD_H)
        $(CC) $(CFLAGS) $(INCLUDES) $(THREADFLAGS)  -o yhidedoorroom.o -c yhidedoorroom.cpp

论坛徽章:
0
4 [报告]
发表于 2005-05-09 16:08 |只看该作者

西陆WEBMUD LINUX6.2下编译不通过 求教 提供TELNET.

/usr/include/mysql/mysql.h:17: conflicting types for `typedef char * string'
/usr/include/g++-2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-
3/string:9: previous declaration as `typedef class basic_string<char,string_char
_traits<char>;,__default_alloc_template<true,0>; >; string'

这是什么意思

论坛徽章:
0
5 [报告]
发表于 2005-05-09 17:07 |只看该作者

西陆WEBMUD LINUX6.2下编译不通过 求教 提供TELNET.

用到c++标准模版库了...
/usr/include/mysql/mysql.h里定义的string与c++标准模版库里的string冲突了

楼主这是什么代码,不会出版权问题,有人追究你吧?

论坛徽章:
0
6 [报告]
发表于 2005-05-09 17:40 |只看该作者

西陆WEBMUD LINUX6.2下编译不通过 求教 提供TELNET.

原帖由 "virmin" 发表:
用到c++标准模版库了...
/usr/include/mysql/mysql.h里定义的string与c++标准模版库里的string冲突了

楼主这是什么代码,不会出版权问题,有人追究你吧?


多些  这代码是公开的.

请问virmin有时间能上来帮我看看么

弄了好多天了
应该缺少库

上来MAKE一下看看
其他还需要什么

论坛徽章:
0
7 [报告]
发表于 2005-05-09 17:40 |只看该作者

西陆WEBMUD LINUX6.2下编译不通过 求教 提供TELNET.

原帖由 "virmin" 发表:
用到c++标准模版库了...
/usr/include/mysql/mysql.h里定义的string与c++标准模版库里的string冲突了

楼主这是什么代码,不会出版权问题,有人追究你吧?


多谢  这代码是公开的.

请问virmin有时间能上来帮我看看么

弄了好多天了
应该缺少库

上来MAKE一下看看
其他还需要什么

论坛徽章:
0
8 [报告]
发表于 2005-05-09 20:13 |只看该作者

西陆WEBMUD LINUX6.2下编译不通过 求教 提供TELNET.

感觉倒不象是缺少库了,我在内网,用netterm没找到办法telnet到外网
代码以前可以编译吗?怎么我看还有mysql.h,你用mysql数据库了?这个的头文件和c++标准模版库里的头文件有冲突,这个问题你以前也存在吗?

论坛徽章:
0
9 [报告]
发表于 2005-05-09 20:31 |只看该作者

西陆WEBMUD LINUX6.2下编译不通过 求教 提供TELNET.

说明是要在linux6.2 or 蓝点2.0 + g++ 2.95.2
编译的
我装了MYSQL库

开始是在redhat9上编译的 可是通过的就更少了 基本都有错
换到6.2下用它自带的G++ 2.91 编译 通过了一些 也生成了不少.o文件和一个可执行文件webmud
但遇见login1.cpp就怎么也过不去了
以前没编译成功过.
我在下LINUX7.2 一会在上面试试了.


你用的什么系统? 直接telnet 不上去么

论坛徽章:
0
10 [报告]
发表于 2005-05-09 20:32 |只看该作者

西陆WEBMUD LINUX6.2下编译不通过 求教 提供TELNET.

我把mysql.h 中定义string的个//掉了
这个错误暂时是消失了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP