PDA

View Full Version : Win32 apathing compile


mollymillions
04-23-2005, 09:04 PM
Is apathing compileable on Win32 systems? If so, how do I get past the SOCKET errors?

e.g.
------ Build started: Project: apathing, Configuration: Debug Win32 ------
Compiling...

pathfinding.cpp
c:\mysql\include\mysql_com.h(116) : error C2146: syntax error : missing ';' before identifier 'fd'
c:\mysql\include\mysql_com.h(116) : error C2501: 'st_net::SOCKET' : missing storage-class or type specifiers
c:\mysql\include\mysql_com.h(116) : error C2501: 'st_net::fd' : missing storage-class or type specifiers
c:\mysql\include\mysql_com.h(180) : error C2065: 'SOCKET' : undeclared identifier
c:\mysql\include\mysql_com.h(180) : error C2146: syntax error : missing ')' before identifier 's'
c:\mysql\include\mysql_com.h(181) : error C2059: syntax error : ')'


I have tried various solutions found on web forums, but no success as yet. I am using the latest CVS source (Version.h: CURRENT_VERSION "0.6.1-DR1"). I can successfully compile World, Zone and EmuSharedMem.

cofruben
04-24-2005, 04:51 AM
try including <winsock2.h>

fathernitwit
04-24-2005, 04:56 AM
I dont recommend trying to build apathing yourself. it requires several external libraries, specifically boost and gd at least. and im not sure how well it will work with windows boost, not to mention that boost is a pain to set up.

Also, it dosent even work right now, theres areason it hasnt been announced or released yet... the pathing info it produces causes infinite loops.

mollymillions
04-24-2005, 08:17 AM
[size=2]Boost and GD weren't a problem, and i had tried including winsock.h before mysql.h, without resolving the socket issue. I will persevere with this when i have some more time. [size=2]Thanks for the help, it