Okies, I finally got around to porting the eliza bot to a copy of my MUD. The code can be found on the Circle FTP site BTW. Since the bot is written in C++, I had originally given up on this project, until I found by accident that gcc can link both C and C++ object files and even automagically compiles the C++ files with gpp. The problem is, I got the following errors while linking: allkeys.o: In function `allkeys::addkey(void)': allkeys.o(.text+0x8f): undefined reference to `__eh_pc' allkeys.o(.text+0x98): undefined reference to `__throw' allkeys.o(.text+0xa5): undefined reference to `terminate(void)' allkeys.o: In function `akeynode::akeynode(void)': allkeys.o(.gnu.linkonce.t.__8akeynode+0x2d): undefined reference to `__eh_pc' allkeys.o(.gnu.linkonce.t.__8akeynode+0x36): undefined reference to `__throw' allkeys.o(.gnu.linkonce.t.__8akeynode+0x45): undefined reference to `terminate(void)' chatmain.o: In function `startchat': chatmain.o(.text+0xcb): undefined reference to `__eh_pc' chatmain.o(.text+0xd4): undefined reference to `__throw' chatmain.o(.text+0xe1): undefined reference to `terminate(void)' chatmain.o: In function `eliza::eliza(void)': chatmain.o(.gnu.linkonce.t.__5eliza+0x10e): undefined reference to `__eh_pc' chatmain.o(.gnu.linkonce.t.__5eliza+0x117): undefined reference to `__throw' chatmain.o(.gnu.linkonce.t.__5eliza+0x152): undefined reference to `__eh_pc' chatmain.o(.gnu.linkonce.t.__5eliza+0x15b): undefined reference to `__throw' chatmain.o(.gnu.linkonce.t.__5eliza+0x192): undefined reference to `__eh_pc' chatmain.o(.gnu.linkonce.t.__5eliza+0x19b): undefined reference to `__throw' chatmain.o(.gnu.linkonce.t.__5eliza+0x1ce): undefined reference to `__eh_pc' chatmain.o(.gnu.linkonce.t.__5eliza+0x1d7): undefined reference to `__throw' chatmain.o(.gnu.linkonce.t.__5eliza+0x1e5): undefined reference to `terminate(void)' eliza.o: In function `eliza::getname(char *)': eliza.o(.text+0x230): undefined reference to `__eh_pc' eliza.o(.text+0x239): undefined reference to `__throw' eliza.o(.text+0x242): undefined reference to `__eh_pc' eliza.o(.text+0x24b): undefined reference to `__throw' eliza.o(.text+0x252): undefined reference to `__eh_pc' eliza.o(.text+0x25b): undefined reference to `__throw' eliza.o(.text+0x262): undefined reference to `__eh_pc' eliza.o(.text+0x26b): undefined reference to `__throw' eliza.o(.text+0x279): undefined reference to `terminate(void)' (God, I hope that wrapped correctly, my apologies if not folks) Anyways, common sense tells me these errors are because I don't have the correct lib(s) needed here. I was hoping someone could tell me which one(s) I need to get this to link correctly. No flames, please. I know I shouldn't be screwing with code I don't understand, but it's the only way for me to learn. Yur Obt. Svt, -FIRE __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/11/01 PDT