Topic: Compiling under Windows, Possible???
I have tried a few times to compile teewars source under x86 windows and nothing works
I can get as far as compiling bam and running it, but bam fails at building the source. It keeps failing at e_system.c file:
bam.exe: building 'debug'
dmc -Jm -w -v0 /D_CRT_SECURE_NO_DEPRECATE /c -w -DWIN32 -o-all -D_MT -g -D_DEBUG C:/tw/src/engine/e_system.c -IC:/tw/src -IC:/tw/src/external/zlib -oC:/tw/objs/e_system_d.obj -mn
socklen_t fromlen = sizeof(struct sockaddr);
^
C:/tw/src/engine/e_system.c(529) : Error: undefined identifier 'socklen_t'
bytes = recvfrom(sock, (char*)data, maxsize, 0, &from, &fromlen);
^
C:/tw/src/engine/e_system.c(530) : Error: undefined identifier 'fromlen'
socklen_t sockaddr_len;
^
C:/tw/src/engine/e_system.c(596) : Error: ';' expected following declaration of struct member
sockaddr_len = sizeof(addr);
^
C:/tw/src/engine/e_system.c(599) : Error: undefined identifier 'sockaddr_len'
r = SHGetFolderPath (NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, home);
^
C:/tw/src/engine/e_system.c(721) : Error: undefined identifier 'SHGFP_TYPE_CURRENT'
Fatal error: too many errors
--- errorlevel 1
bam.exe: compile_c returned error number 1
Whats wrong?