Lordsputnik Report post Posted June 2, 2007 I get 45 errors compiling the storebot code, as linked to in CrusadingKnight's guide to getting a bot. I'm not that good at C++, so I need someone to iron out the bugs/tell me what to do in order to make it work. If anyone thinks they can help, please pm me ingame, or here. Thanks, Lord Sputnik. Share this post Link to post Share on other sites
Placid Report post Posted June 2, 2007 Post the errors. Share this post Link to post Share on other sites
Lordsputnik Report post Posted June 2, 2007 (edited) Compiler: Default compiler Building Makefile: "D:\Data\Downloads\storebot\storebot\Makefile.win" Executing make... make.exe -f "D:\Data\Downloads\storebot\storebot\Makefile.win" all gcc.exe -c connection.c -o connection.o -I"D:/Data/KotFR/Dev-Cpp/include" -w -fexpensive-optimizations -O3 In file included from trade.h:4, from connection.c:31: items.h:7: error: syntax error before "Uint16" items.h:195: error: syntax error before "inv" items.h:200: error: syntax error before '*' token items.h:201: error: syntax error before '*' token In file included from connection.c:31: trade.h:13: error: syntax error before "ITEM" trade.h:25: error: syntax error before '}' token trade.h:40: error: syntax error before "trade" trade.h:48: error: syntax error before "Uint16" trade.h:49: error: syntax error before "Uint16" trade.h:52: error: syntax error before "Uint16" trade.h:53: error: syntax error before "Uint16" trade.h:55: error: syntax error before "Uint32" trade.h:56: error: syntax error before "Uint32" connection.c:49: error: syntax error before "theset" connection.c:50: error: syntax error before "thesock" connection.c: In function `init_connection': connection.c:58: error: `IPaddress' undeclared (first use in this function) connection.c:58: error: (Each undeclared identifier is reported only once connection.c:58: error: for each function it appears in.) connection.c:58: error: syntax error before "ipad" connection.c:67: error: `ipad' undeclared (first use in this function) connection.c: At top level: connection.c:157: error: syntax error before '*' token connection.c: In function `handle_raw_text_from_server': connection.c:159: error: `data' undeclared (first use in this function) connection.c:160: error: `Uint8' undeclared (first use in this function) connection.c:160: error: syntax error before "user" connection.c:164: error: `user' undeclared (first use in this function) connection.c:170: error: `command' undeclared (first use in this function) connection.c:175: error: `args' undeclared (first use in this function) connection.c: In function `process_message': connection.c:198: error: `Uint8' undeclared (first use in this function) connection.c:198: error: syntax error before "command" connection.c:201: error: `command' undeclared (first use in this function) connection.c:207: error: `me' undeclared (first use in this function) connection.c:235: error: request for member `he_accepted' in something not a structure or union connection.c:238: error: request for member `we_accepted' in something not a structure or union connection.c:243: error: request for member `he_accepted' in something not a structure or union connection.c:245: error: request for member `we_accepted' in something not a structure or union connection.c:254: error: `Uint16' undeclared (first use in this function) connection.c:254: error: syntax error before ')' token connection.c:254: error: `Uint32' undeclared (first use in this function) connection.c:254: error: syntax error before ')' token connection.c:259: error: syntax error before ')' token connection.c:273: error: `stderr' undeclared (first use in this function) connection.c:279: error: label at end of compound statement connection.c: In function `send_to_server': connection.c:323: error: `Uint16' undeclared (first use in this function) connection.c:323: error: syntax error before "len" make.exe: *** [connection.o] Error 1 Execution terminated I think most of it is me not configuring it properly... Edited June 2, 2007 by Lordsputnik Share this post Link to post Share on other sites
Placid Report post Posted June 2, 2007 Do you have the relevant SDL development libs? (libsdl-net etc) Share this post Link to post Share on other sites
Lordsputnik Report post Posted June 3, 2007 No... probably not. Can you give a link to them? Thanks. Share this post Link to post Share on other sites
Placid Report post Posted June 4, 2007 No... probably not. Can you give a link to them? Thanks. Install them via your distribution's package manager (version 1.2) or if you're on Windows, use the links here: http://el.beplacid.com/dev/win-libs/ Share this post Link to post Share on other sites
Lordsputnik Report post Posted June 4, 2007 (edited) Thanks. Downloading them now. EDIT: It says that the devpak files are corrupt. Edited June 4, 2007 by Lordsputnik Share this post Link to post Share on other sites
Placid Report post Posted June 5, 2007 Thanks. Downloading them now. EDIT: It says that the devpak files are corrupt. That would be your download, i'd assume. It may have been corrupted during transfer. Try downloading again - these files have been on my webserver for months and there have never been any reported issues. Share this post Link to post Share on other sites
Lordsputnik Report post Posted June 6, 2007 Tried to open the files instead of saving then opening. Works now . Share this post Link to post Share on other sites
Lordsputnik Report post Posted June 15, 2007 I get an error message when trying to open "SDL_net-1.2.5-3hot.DevPak". It says that it's an incompatible version, yet I have version 4.9.9.2 of Dev C++. Share this post Link to post Share on other sites