1 (edited by ShootMe 2008-02-17 10:35:39)

Topic: Compiling under Windows, Possible???

I have tried a few times to compile teewars source under x86 windows and nothing works sad

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?

2 (edited by void 2008-02-17 13:20:55)

Re: Compiling under Windows, Possible???

Oh, DMC smile
I think that's pretty untested. We are using MS compiler.

EDIT: Looks like you have some headers missing or not working. socket_t is not found.

Languages shapes the way we think, or don't.