Dikumud

This is a discussion on Dikumud within the C++ Programming forums, part of the General Programming Boards category; I am using Dev-C++ 4.9.9.2(5.0beta) First, I downloaded the dikumud source code ( ftp://ftp.game.org/pub/mud/diku/ ), then I included comm.c(main file) ...

  1. #1
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318

    Dikumud

    I am using Dev-C++ 4.9.9.2(5.0beta)
    First, I downloaded the dikumud source code ( ftp://ftp.game.org/pub/mud/diku/ ), then I included comm.c(main file) to my dikumud project and tried to compile it. Errors:
    Code:
    Kompilaator: Default compiler
    Building Makefile: "C:\Programs\Dev-Cpp\Makefile.win"
     make... käivitus
    make.exe -f "C:\Programs\Dev-Cpp\Makefile.win" all
    g++.exe -c dm-dist/comm.c -o dm-dist/comm.o -I"C:/PROGRAMS/DEV-CPP/lib/gcc/mingw32/3.4.2/include"  -I"C:/PROGRAMS/DEV-CPP/include/c++/3.4.2/backward"  -I"C:/PROGRAMS/DEV-CPP/include/c++/3.4.2/mingw32"  -I"C:/PROGRAMS/DEV-CPP/include/c++/3.4.2"  -I"C:/PROGRAMS/DEV-CPP/include"    -fno-access-control
    
    dm-dist/comm.c:14:24: sys/socket.h: No such file or directory
    dm-dist/comm.c:15:22: sys/wait.h: No such file or directory
    dm-dist/comm.c:16:24: netinet/in.h: No such file or directory
    dm-dist/comm.c:17:19: netdb.h: No such file or directory
    In file included from dm-dist/comm.c:23:
    dm-dist/structs.h:12: error: redeclaration of C++ built-in type `bool'
    
    dm-dist/structs.h:418: error: expected identifier before ';' token
    
    dm-dist/structs.h:575: error: expected identifier before ';' token
    
    In file included from dm-dist/comm.c:28:
    dm-dist/db.h:42: error: virtual outside class declaration
    dm-dist/db.h:44: error: virtual outside class declaration
    
    dm-dist/db.h:45: error: virtual outside class declaration
    dm-dist/db.h:127: error: declaration does not declare anything
    
    dm-dist/comm.c: In function `int main(int, char**)':
    dm-dist/comm.c:129: error: `exit' undeclared (first use this function)
    dm-dist/comm.c:129: error: (Each undeclared identifier is reported only once for each function it appears in.)
    
    dm-dist/comm.c:152: error: `atoi' undeclared (first use this function)
    dm-dist/comm.c:170: error: `srandom' undeclared (first use this function)
    
    dm-dist/comm.c: In function `int run_the_game(int)':
    dm-dist/comm.c:221: error: `exit' undeclared (first use this function)
    dm-dist/comm.c: In function `int game_loop(int)':
    dm-dist/comm.c:236: error: `fd_set' undeclared (first use this function)
    dm-dist/comm.c:236: error: expected `;' before "input_set"
    dm-dist/comm.c:248: error: `gettimeofday' undeclared (first use this function)
    dm-dist/comm.c:251: error: `getdtablesize' undeclared (first use this function)
    dm-dist/comm.c:253: error: `SIGUSR1' undeclared (first use this function)
    dm-dist/comm.c:253: error: `sigmask' undeclared (first use this function)
    dm-dist/comm.c:253: error: `SIGUSR2' undeclared (first use this function)
    dm-dist/comm.c:254: error: `SIGPIPE' undeclared (first use this function)
    dm-dist/comm.c:254: error: `SIGALRM' undeclared (first use this function)
    dm-dist/comm.c:255: error: `SIGURG' undeclared (first use this function)
    dm-dist/comm.c:255: error: `SIGXCPU' undeclared (first use this function)
    dm-dist/comm.c:255: error: `SIGHUP' undeclared (first use this function)
    dm-dist/comm.c:261: error: `input_set' undeclared (first use this function)
    dm-dist/comm.c:261: error: `FD_ZERO' undeclared (first use this function)
    dm-dist/comm.c:262: error: `output_set' undeclared (first use this function)
    dm-dist/comm.c:263: error: `exc_set' undeclared (first use this function)
    dm-dist/comm.c:264: error: `FD_SET' undeclared (first use this function)
    dm-dist/comm.c:284: error: `sigsetmask' undeclared (first use this function)
    dm-dist/comm.c:286: error: `select' undeclared (first use this function)
    dm-dist/comm.c:293: error: expected primary-expression before ')' token
    dm-dist/comm.c:293: error: expected primary-expression before ')' token
    dm-dist/comm.c:293: error: expected primary-expression before ')' token
    
    dm-dist/comm.c:296: error: `exit' undeclared (first use this function)
    dm-dist/comm.c:304: error: `FD_ISSET' undeclared (first use this function)
    dm-dist/comm.c:314: error: `FD_CLR' undeclared (first use this function)
    
    dm-dist/comm.c:411: error: `weather_and_time' undeclared (first use this function)
    dm-dist/comm.c:415: error: `update_time' undeclared (first use this function)
    dm-dist/comm.c:421: error: `night_watchman' undeclared (first use this function)
    
    dm-dist/comm.c: In function `int get_from_q(txt_q*, char*)':
    dm-dist/comm.c:453: error: `free' undeclared (first use this function)
    dm-dist/comm.c: In function `void write_to_q(char*, txt_q*)':
    dm-dist/comm.c:464: error: expected primary-expression before "struct"
    dm-dist/comm.c:464: error: expected `;' before "struct"
    dm-dist/comm.c:466: error: expected identifier before ')' token
    
    dm-dist/comm.c:466: error: `calloc' undeclared (first use this function)
    
    dm-dist/comm.c:466: error: `abort' undeclared (first use this function)
    dm-dist/comm.c:467: error: expected identifier before '->' token
    dm-dist/comm.c:467: error: expected `)' before '->' token
    dm-dist/comm.c:467: error: expected `)' before '}' token
    
    dm-dist/comm.c:467: error: expected `)' before '}' token
    dm-dist/comm.c:467: error: expected primary-expression before '}' token
    dm-dist/comm.c:467: error: expected `;' before '}' token
    dm-dist/comm.c:469: error: expected identifier before '->' token
    dm-dist/comm.c:474: error: expected identifier before '->' token
    dm-dist/comm.c:474: error: expected `;' before '->' token
    dm-dist/comm.c:475: error: expected identifier before ';' token
    dm-dist/comm.c:479: error: expected identifier before ';' token
    dm-dist/comm.c:480: error: expected identifier before ';' token
    dm-dist/comm.c:481: error: expected identifier before '->' token
    dm-dist/comm.c:481: error: expected `;' before '->' token
    
    dm-dist/comm.c: In function `int init_socket(int)':
    dm-dist/comm.c:541: error: aggregate `sockaddr_in sa' has incomplete type and cannot be defined
    dm-dist/comm.c:546: error: invalid application of `sizeof' to incomplete type `sockaddr_in' 
    dm-dist/comm.c:546: error: `bzero' undeclared (first use this function)
    dm-dist/comm.c:547: error: `gethostname' undeclared (first use this function)
    dm-dist/comm.c:560: error: `AF_INET' undeclared (first use this function)
    dm-dist/comm.c:561: error: `htons' undeclared (first use this function)
    
    dm-dist/comm.c:562: error: `SOCK_STREAM' undeclared (first use this function)
    dm-dist/comm.c:562: error: `socket' undeclared (first use this function)
    dm-dist/comm.c:566: error: `exit' undeclared (first use this function)
    dm-dist/comm.c:568: error: `SOL_SOCKET' undeclared (first use this function)
    dm-dist/comm.c:568: error: `SO_REUSEADDR' undeclared (first use this function)
    dm-dist/comm.c:569: error: `setsockopt' undeclared (first use this function)
    dm-dist/comm.c:584: error: `bind' undeclared (first use this function)
    dm-dist/comm.c:590: error: `listen' undeclared (first use this function)
    dm-dist/comm.c: In function `int new_connection(int)':
    dm-dist/comm.c:601: error: aggregate `sockaddr isa' has incomplete type and cannot be defined
    dm-dist/comm.c:608: error: `getsockname' undeclared (first use this function)
    dm-dist/comm.c:611: error: `accept' undeclared (first use this function)
    dm-dist/comm.c: In function `int new_descriptor(int)':
    dm-dist/comm.c:642: error: aggregate `sockaddr_in sock' has incomplete type and cannot be defined
    dm-dist/comm.c:660: error: `calloc' undeclared (first use this function)
    dm-dist/comm.c:660: error: `abort' undeclared (first use this function)
    dm-dist/comm.c:664: error: `getpeername' undeclared (first use this function)
    dm-dist/comm.c:670: error: `AF_INET' undeclared (first use this function)
    dm-dist/comm.c:670: error: `gethostbyaddr' undeclared (first use this function)
    dm-dist/comm.c:677: error: invalid use of undefined type `struct hostent'
    dm-dist/comm.c:643: error: forward declaration of `struct hostent'
    
    dm-dist/comm.c: In function `int process_input(descriptor_data*)':
    dm-dist/comm.c:787: error: `EWOULDBLOCK' undeclared (first use this function)
    
    dm-dist/comm.c: In function `void close_socket(descriptor_data*)':
    dm-dist/comm.c:948: error: `free' undeclared (first use this function)
    
    dm-dist/comm.c: In function `void nonblock(int)':
    dm-dist/comm.c:958: error: `F_SETFL' undeclared (first use this function)
    dm-dist/comm.c:958: error: `O_NDELAY' undeclared (first use this function)
    dm-dist/comm.c:958: error: `fcntl' undeclared (first use this function)
    dm-dist/comm.c:961: error: `exit' undeclared (first use this function)
    dm-dist/comm.c: At global scope:
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: `n' does not name a type
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: missing terminating " character
    dm-dist/comm.c:1021: error: missing terminating " character
    
    dm-dist/comm.c: In function `void act(char*, int, char_data*, obj_data*, void*, int)':
    dm-dist/comm.c:1162: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1163: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1164: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1165: error: invalid conversion from `const char*' to `char*'
    
    dm-dist/comm.c:1166: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1167: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1168: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1169: error: invalid conversion from `const char*' to `char*'
    
    dm-dist/comm.c:1170: error: invalid conversion from `const char*' to `char*'
    
    dm-dist/comm.c:1171: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1172: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1173: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1174: error: `index' undeclared (first use this function)
    
    g++.exe dm-dist/comm.o  -o "dikumuda.exe" -L"C:/PROGRAMS/DEV-CPP/lib" -lgdi32  
    
    G__~1.EXE: dm-dist/comm.o: No such file or directory
    
    Käivitus peatatud
    I saw I have some header files missing(sys/socket.h,sys/wait.h,netinet/in.h,netdb.h)
    Then I searched google for socket.h, found the source code at http://www.gnu.org/software/commoncp...8h-source.html . Then I quickly wrote a php script(http://maxorator.farvista.net/jancy.php) that would remove those line numbers(removes first 6 chars of every line) and saved it to my include/sys folder. Netinet/in.h file i found from there: ftp://ftp.nstu.ru/pub/FreeBSD/5.4-RE...e/netinet/in.h . Then sys/wait.h I got from this address: ftp://ftp.relline.ru/pub/unix/FreeBS...ude/sys/wait.h and netdb.h ( ftp://ftp.nstu.ru/pub/FreeBSD/5.4-RE...nclude/netdb.h ).
    Then I tried to compile again, errors:
    Code:
    Kompilaator: Default compiler
    Building Makefile: "C:\Programs\Dev-Cpp\Makefile.win"
     make... käivitus
    make.exe -f "C:\Programs\Dev-Cpp\Makefile.win" all
    g++.exe -c dm-dist/comm.c -o dm-dist/comm.o -I"C:/PROGRAMS/DEV-CPP/lib/gcc/mingw32/3.4.2/include"  -I"C:/PROGRAMS/DEV-CPP/include/c++/3.4.2/backward"  -I"C:/PROGRAMS/DEV-CPP/include/c++/3.4.2/mingw32"  -I"C:/PROGRAMS/DEV-CPP/include/c++/3.4.2"  -I"C:/PROGRAMS/DEV-CPP/include"    -fno-access-control
    
    In file included from dm-dist/comm.c:14:
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:1: error: `free' does not name a type
    
    In file included from dm-dist/comm.c:14:
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:67:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:71:10: #include expects "FILENAME" or <FILENAME>
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:75:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:80:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:81:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:101: error: aggregate `__EXPORT InetHostAddress' has incomplete type and cannot be defined
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:102: error: aggregate `__EXPORT SocketPort' has incomplete type and cannot be defined
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:103: error: aggregate `__EXPORT SocketService' has incomplete type and cannot be defined
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:106: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:114: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:136: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:197: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:209: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:226: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:229: error: stray '\' in program
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:229: error: missing terminating " character
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:232: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:246: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:420: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:458: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:472: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:526: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:562: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:573: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:613: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:685: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:706: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:725: error: expected init-declarator before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:725: error: expected `,' or `;' before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:727: error: expected `,' or `...' before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:728: error: ISO C++ forbids declaration of `InetAddress' with no type
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h: In function `in_addr getaddress(int)':
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:728: error: return type `struct in_addr' is incomplete
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:728: error: `ia' undeclared (first use this function)
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:728: error: (Each undeclared identifier is reported only once for each function it appears in.)
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h: At global scope:
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:741: error: aggregate `__EXPORT SimpleTCPStream' has incomplete type and cannot be defined
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:743: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:779: error: redefinition of `__EXPORT SocketService'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:103: error: `<typeprefixerror> SocketService' previously declared here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:781: error: invalid function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:851: error: invalid function declaration
    
    In file included from dm-dist/comm.c:15:
    C:/PROGRAMS/DEV-CPP/include/sys/wait.h:36:23: sys/cdefs.h: No such file or directory
    
    In file included from dm-dist/comm.c:15:
    C:/PROGRAMS/DEV-CPP/include/sys/wait.h:102: error: `__BEGIN_DECLS' does not name a type
    In file included from dm-dist/comm.c:16:
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:37:24: sys/_types.h: No such file or directory
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:38:28: machine/endian.h: No such file or directory
    In file included from dm-dist/comm.c:16:
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:50: error: expected constructor, destructor, or type conversion before "typedef"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:50: error: expected `,' or `;' before "typedef"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:55: error: `__uint16_t' does not name a type
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:60: error: `__uint32_t' does not name a type
    
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:65: error: `uint32_t' does not name a type
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:70: error: `uint16_t' does not name a type
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:75: error: `__sa_family_t' does not name a type
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:82: error: `in_addr_t' does not name a type
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:89: error: `uint8_t' does not name a type
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:90: error: `sa_family_t' does not name a type
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:91: error: `in_port_t' does not name a type
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:100: error: `__BEGIN_DECLS' does not name a type
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:102: error: `uint16_t' does not name a type
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:103: error: `uint32_t' does not name a type
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:104: error: `uint16_t' does not name a type
    In file included from dm-dist/comm.c:17:
    C:/PROGRAMS/DEV-CPP/include/netdb.h:73: error: expected constructor, destructor, or type conversion before "typedef"
    C:/PROGRAMS/DEV-CPP/include/netdb.h:73: error: expected `,' or `;' before "typedef"
    C:/PROGRAMS/DEV-CPP/include/netdb.h:216: error: expected constructor, destructor, or type conversion before "void"
    C:/PROGRAMS/DEV-CPP/include/netdb.h:216: error: expected `,' or `;' before "void"
    C:/PROGRAMS/DEV-CPP/include/netdb.h:247: error: `socklen_t' has not been declared
    C:/PROGRAMS/DEV-CPP/include/netdb.h:248: error: ISO C++ forbids declaration of `parameter' with no type
    In file included from dm-dist/comm.c:18:
    C:/PROGRAMS/DEV-CPP/include/string.h:30: error: expected constructor, destructor, or type conversion before "extern"
    C:/PROGRAMS/DEV-CPP/include/string.h:30: error: expected `,' or `;' before "extern"
    
    In file included from dm-dist/comm.c:23:
    dm-dist/structs.h:12: error: redeclaration of C++ built-in type `bool'
    
    dm-dist/structs.h:418: error: expected identifier before ';' token
    
    dm-dist/structs.h:575: error: expected identifier before ';' token
    
    In file included from dm-dist/comm.c:28:
    dm-dist/db.h:42: error: virtual outside class declaration
    dm-dist/db.h:44: error: virtual outside class declaration
    
    dm-dist/db.h:45: error: virtual outside class declaration
    dm-dist/db.h:127: error: declaration does not declare anything
    
    dm-dist/comm.c: In function `int main(int, char**)':
    dm-dist/comm.c:129: error: `exit' undeclared (first use this function)
    
    dm-dist/comm.c:152: error: `atoi' undeclared (first use this function)
    dm-dist/comm.c:170: error: `srandom' undeclared (first use this function)
    
    dm-dist/comm.c: In function `int run_the_game(int)':
    dm-dist/comm.c:221: error: `exit' undeclared (first use this function)
    
    dm-dist/comm.c: In function `int game_loop(int)':
    dm-dist/comm.c:236: error: `fd_set' undeclared (first use this function)
    dm-dist/comm.c:236: error: expected `;' before "input_set"
    
    dm-dist/comm.c:248: error: `gettimeofday' undeclared (first use this function)
    
    dm-dist/comm.c:251: error: `getdtablesize' undeclared (first use this function)
    dm-dist/comm.c:253: error: `SIGUSR1' undeclared (first use this function)
    dm-dist/comm.c:253: error: `sigmask' undeclared (first use this function)
    dm-dist/comm.c:253: error: `SIGUSR2' undeclared (first use this function)
    dm-dist/comm.c:254: error: `SIGPIPE' undeclared (first use this function)
    dm-dist/comm.c:254: error: `SIGALRM' undeclared (first use this function)
    dm-dist/comm.c:255: error: `SIGURG' undeclared (first use this function)
    dm-dist/comm.c:255: error: `SIGXCPU' undeclared (first use this function)
    dm-dist/comm.c:255: error: `SIGHUP' undeclared (first use this function)
    dm-dist/comm.c:261: error: `input_set' undeclared (first use this function)
    dm-dist/comm.c:261: error: `FD_ZERO' undeclared (first use this function)
    dm-dist/comm.c:262: error: `output_set' undeclared (first use this function)
    dm-dist/comm.c:263: error: `exc_set' undeclared (first use this function)
    dm-dist/comm.c:264: error: `FD_SET' undeclared (first use this function)
    dm-dist/comm.c:284: error: `sigsetmask' undeclared (first use this function)
    
    dm-dist/comm.c:286: error: `select' undeclared (first use this function)
    dm-dist/comm.c:293: error: expected primary-expression before ')' token
    dm-dist/comm.c:293: error: expected primary-expression before ')' token
    dm-dist/comm.c:293: error: expected primary-expression before ')' token
    dm-dist/comm.c:296: error: `exit' undeclared (first use this function)
    dm-dist/comm.c:304: error: `FD_ISSET' undeclared (first use this function)
    dm-dist/comm.c:314: error: `FD_CLR' undeclared (first use this function)
    dm-dist/comm.c:411: error: `weather_and_time' undeclared (first use this function)
    dm-dist/comm.c:415: error: `update_time' undeclared (first use this function)
    dm-dist/comm.c:421: error: `night_watchman' undeclared (first use this function)
    
    dm-dist/comm.c: In function `int get_from_q(txt_q*, char*)':
    dm-dist/comm.c:450: error: `strcpy' undeclared (first use this function)
    
    dm-dist/comm.c:453: error: `free' undeclared (first use this function)
    dm-dist/comm.c: In function `void write_to_q(char*, txt_q*)':
    dm-dist/comm.c:464: error: expected primary-expression before "struct"
    dm-dist/comm.c:464: error: expected `;' before "struct"
    dm-dist/comm.c:466: error: expected identifier before ')' token
    
    dm-dist/comm.c:466: error: `calloc' undeclared (first use this function)
    dm-dist/comm.c:466: error: `abort' undeclared (first use this function)
    dm-dist/comm.c:467: error: expected identifier before '->' token
    dm-dist/comm.c:467: error: expected `)' before '->' token
    
    dm-dist/comm.c:467: error: expected `)' before '}' token
    dm-dist/comm.c:467: error: expected `)' before '}' token
    dm-dist/comm.c:467: error: expected primary-expression before '}' token
    dm-dist/comm.c:467: error: expected `;' before '}' token
    dm-dist/comm.c:469: error: expected identifier before '->' token
    dm-dist/comm.c:469: error: `strcpy' undeclared (first use this function)
    dm-dist/comm.c:474: error: expected identifier before '->' token
    dm-dist/comm.c:474: error: expected `;' before '->' token
    
    dm-dist/comm.c:475: error: expected identifier before ';' token
    dm-dist/comm.c:479: error: expected identifier before ';' token
    dm-dist/comm.c:480: error: expected identifier before ';' token
    dm-dist/comm.c:481: error: expected identifier before '->' token
    dm-dist/comm.c:481: error: expected `;' before '->' token
    
    dm-dist/comm.c: In function `int init_socket(int)':
    dm-dist/comm.c:546: error: `bzero' undeclared (first use this function)
    dm-dist/comm.c:547: error: `gethostname' undeclared (first use this function)
    dm-dist/comm.c:560: error: 'struct sockaddr_in' has no member named 'sin_family'
    dm-dist/comm.c:560: error: `AF_INET' undeclared (first use this function)
    dm-dist/comm.c:561: error: 'struct sockaddr_in' has no member named 'sin_port'
    dm-dist/comm.c:561: error: `__htons' undeclared (first use this function)
    dm-dist/comm.c:562: error: `SOCK_STREAM' undeclared (first use this function)
    dm-dist/comm.c:562: error: `socket' undeclared (first use this function)
    dm-dist/comm.c:566: error: `exit' undeclared (first use this function)
    dm-dist/comm.c:568: error: `SOL_SOCKET' undeclared (first use this function)
    dm-dist/comm.c:568: error: `SO_REUSEADDR' undeclared (first use this function)
    dm-dist/comm.c:569: error: `setsockopt' undeclared (first use this function)
    
    dm-dist/comm.c:584: error: `bind' undeclared (first use this function)
    
    dm-dist/comm.c:590: error: `listen' undeclared (first use this function)
    dm-dist/comm.c: In function `int new_connection(int)':
    dm-dist/comm.c:601: error: aggregate `sockaddr isa' has incomplete type and cannot be defined
    dm-dist/comm.c:608: error: `getsockname' undeclared (first use this function)
    
    dm-dist/comm.c:611: error: `accept' undeclared (first use this function)
    dm-dist/comm.c: In function `int new_descriptor(int)':
    dm-dist/comm.c:660: error: `calloc' undeclared (first use this function)
    dm-dist/comm.c:660: error: `abort' undeclared (first use this function)
    dm-dist/comm.c:664: error: `getpeername' undeclared (first use this function)
    dm-dist/comm.c:670: error: `AF_INET' undeclared (first use this function)
    dm-dist/comm.c:677: error: `strncpy' undeclared (first use this function)
    
    dm-dist/comm.c: In function `int write_to_descriptor(int, char*)':
    dm-dist/comm.c:748: error: `strlen' undeclared (first use this function)
    dm-dist/comm.c: In function `int process_input(descriptor_data*)':
    dm-dist/comm.c:777: error: `strlen' undeclared (first use this function)
    
    dm-dist/comm.c:787: error: `EWOULDBLOCK' undeclared (first use this function)
    
    dm-dist/comm.c:837: error: `strcpy' undeclared (first use this function)
    
    dm-dist/comm.c: In function `void close_socket(descriptor_data*)':
    dm-dist/comm.c:948: error: `free' undeclared (first use this function)
    
    dm-dist/comm.c: In function `void nonblock(int)':
    dm-dist/comm.c:958: error: `F_SETFL' undeclared (first use this function)
    dm-dist/comm.c:958: error: `O_NDELAY' undeclared (first use this function)
    dm-dist/comm.c:958: error: `fcntl' undeclared (first use this function)
    dm-dist/comm.c:961: error: `exit' undeclared (first use this function)
    dm-dist/comm.c: At global scope:
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: `n' does not name a type
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: stray '\' in program
    dm-dist/comm.c:972: error: missing terminating " character
    dm-dist/comm.c:1021: error: missing terminating " character
    
    dm-dist/comm.c: In function `void act(char*, int, char_data*, obj_data*, void*, int)':
    dm-dist/comm.c:1162: error: invalid conversion from `const char*' to `char*'
    
    dm-dist/comm.c:1163: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1164: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1165: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1166: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1167: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1168: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1169: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1170: error: invalid conversion from `const char*' to `char*'
    
    dm-dist/comm.c:1171: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1172: error: invalid conversion from `const char*' to `char*'
    dm-dist/comm.c:1173: error: invalid conversion from `const char*' to `char*'
    
    dm-dist/comm.c:1174: error: `index' undeclared (first use this function)
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h: At global scope:
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:101: error: storage size of `InetHostAddress' isn't known
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:102: error: storage size of `SocketPort' isn't known
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:103: error: storage size of `SocketService' isn't known
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:741: error: storage size of `SimpleTCPStream' isn't known
    
    g++.exe dm-dist/comm.o  -o "dikumuda.exe" -L"C:/PROGRAMS/DEV-CPP/lib" -lgdi32  
    
    G__~1.EXE: dm-dist/comm.o: No such file or directory
    
    Käivitus peatatud
    Then I noticed dikumud is in C, not in C++ and I changed the compiler settings.
    Errors:
    Code:
    Kompilaator: Default compiler
    Building Makefile: "C:\Programs\Dev-Cpp\Makefile.win"
     make... käivitus
    make.exe -f "C:\Programs\Dev-Cpp\Makefile.win" all
    gcc.exe -c dm-dist/comm.c -o dm-dist/comm.o -I"C:/PROGRAMS/DEV-CPP/include"    -fno-access-control
    
    cc1.exe: warning: command line option "-fno-access-control" is valid for C++/ObjC++ but not for C
    
    In file included from dm-dist/comm.c:14:
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:1: error: syntax error before "web"
    In file included from dm-dist/comm.c:14:
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:67:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:71:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:75:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:80:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:81:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:101: error: syntax error before "__EXPORT"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:101: warning: data definition has no type or storage class
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:102: error: syntax error before "__EXPORT"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:102: warning: data definition has no type or storage class
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:103: error: syntax error before "__EXPORT"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:103: warning: data definition has no type or storage class
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:105: error: syntax error before "__EXPORT"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:106: error: syntax error before '{' token
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:110: error: syntax error before "void"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:111: error: syntax error before "address"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:111: error: `operator' declared as function returning a function
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h: In function `operator':
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:120: error: syntax error before "address"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:120: error: `operator' declared as function returning a function
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:148: error: syntax error before "mutable"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:150: error: storage class specified for parameter `MutexCounter'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:150: error: syntax error before "counter"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:159: error: syntax error before "public"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:170: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:174: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:176: error: conflicting types for 'getAddress'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:174: error: previous definition of 'getAddress' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:176: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:178: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:186: error: syntax error before '&' token
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:229: error: stray '\' in program
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:229: error: missing terminating " character
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:278: error: storage class specified for parameter `Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:287: warning: enum defined inside parms
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:287: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:288: error: storage class specified for parameter `Tos'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:295: warning: enum defined inside parms
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:295: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:296: error: storage class specified for parameter `Pending'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:298: error: syntax error before "protected"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:308: error: storage class specified for parameter `State'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:310: error: syntax error before "private"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:317: error: syntax error before "friend"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:330: error: syntax error before ':' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:338: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:341: error: syntax error before "enable"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:346: error: syntax error before "Error"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:371: error: syntax error before "timeout_t"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:389: error: syntax error before "immediate"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:403: error: syntax error before "isBroadcast"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:406: error: redefinition of parameter 'bool'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:403: error: previous definition of 'bool' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:406: error: syntax error before "isRouted"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:409: error: conflicting types for 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:278: error: previous definition of 'Error' was here
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:409: error: syntax error before "getErrorNumber"
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:436: error: syntax error before '&' token
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:444: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:447: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:452: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:469: error: syntax error before '&' token
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:469: error: redefinition of parameter 'setPeer'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:436: error: previous definition of 'setPeer' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:489: error: conflicting types for 'send'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:444: error: previous definition of 'send' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:489: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:502: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:409: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:502: error: syntax error before "setMulticast"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:505: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:502: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:505: error: syntax error before "setTimeToLive"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:516: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:505: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:516: error: syntax error before "setRouting"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:519: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:516: error: previous definition of 'Error' was here
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:519: error: syntax error before "setTypeOfService"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:522: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:519: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:522: error: syntax error before "setBroadcast"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:537: error: syntax error before '{' token
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:542: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:522: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:542: error: syntax error before "setRouting"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:545: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:542: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:545: error: syntax error before "setMulticast"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:548: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:545: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:548: error: syntax error before "join"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:558: error: redefinition of parameter 'bool'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:406: error: previous definition of 'bool' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:558: error: syntax error before "isInputReady"
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:587: error: syntax error before "getRequest"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:592: error: redefinition of parameter 'InetHostAddress'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:587: error: previous definition of 'InetHostAddress' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:592: error: syntax error before "getLocal"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:595: error: redefinition of parameter 'bool'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:558: error: previous definition of 'bool' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:595: error: syntax error before "isPendingConnection"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:619: error: redefinition of parameter 'InetHostAddress'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:592: error: previous definition of 'InetHostAddress' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:619: error: syntax error before "getSender"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:624: error: syntax error before "friend"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:632: error: syntax error before "TCPStream"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:644: error: syntax error before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:654: error: syntax error before "to"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:676: error: syntax error before "bool"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:679: error: redefinition of parameter 'peek'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:452: error: previous definition of 'peek' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:679: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:681: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:697: error: syntax error before '=' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:699: error: syntax error before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:699: error: redefinition of parameter 'open'
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:697: error: previous definition of 'open' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:703: error: syntax error before "bool"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:716: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:725: error: storage class specified for parameter `__EXPORT'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:725: error: syntax error before "std"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:727: error: syntax error before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:753: error: redefinition of parameter 'endStream'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:636: error: previous definition of 'endStream' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:755: error: syntax error before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:769: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:773: error: syntax error before "timeout_t"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:775: error: syntax error before "timeout_t"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:775: error: redefinition of parameter 'peek'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:679: error: previous definition of 'peek' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:807: error: syntax error before '*' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:812: warning: parameter names (without types) in function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:814: error: syntax error before "bool"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:837: error: redefinition of parameter 'send'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:489: error: previous definition of 'send' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:837: error: syntax error before '{' token
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:840: error: redefinition of parameter 'receive'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:447: error: previous definition of 'receive' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:840: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:843: error: redefinition of parameter 'peek'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:775: error: previous definition of 'peek' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:843: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:848: error: syntax error before "timeout"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:864: error: syntax error before "SocketPort"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:866: error: syntax error before '*' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:866: error: redefinition of parameter 'attach'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:807: error: previous definition of 'attach' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:867: error: syntax error before '*' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:871: error: syntax error before "friend"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:890: error: syntax error before "const"
    In file included from dm-dist/comm.c:15:
    
    C:/PROGRAMS/DEV-CPP/include/sys/wait.h:36:23: sys/cdefs.h: No such file or directory
    In file included from dm-dist/comm.c:15:
    
    C:/PROGRAMS/DEV-CPP/include/sys/wait.h:110: error: syntax error before "__END_DECLS"
    
    In file included from dm-dist/comm.c:16:
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:37:24: sys/_types.h: No such file or directory
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:38:28: machine/endian.h: No such file or directory
    
    In file included from dm-dist/comm.c:16:
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:55: error: storage class specified for parameter `__uint16_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:55: error: syntax error before "uint16_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:60: error: storage class specified for parameter `__uint32_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:60: error: syntax error before "uint32_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:65: error: storage class specified for parameter `uint32_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:65: error: syntax error before "in_addr_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:70: error: storage class specified for parameter `uint16_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:70: error: syntax error before "in_port_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:75: error: storage class specified for parameter `__sa_family_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:75: error: syntax error before "sa_family_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:82: error: syntax error before "in_addr_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:82: warning: no semicolon at end of struct or union
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:89: error: syntax error before "uint8_t"
    
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:89: warning: no semicolon at end of struct or union
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:94: error: syntax error before '}' token
    In file included from dm-dist/comm.c:17:
    C:/PROGRAMS/DEV-CPP/include/netdb.h:99: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/netdb.h:99: warning: empty declaration
    
    C:/PROGRAMS/DEV-CPP/include/netdb.h:110: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/netdb.h:110: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/netdb.h:117: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/netdb.h:117: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/netdb.h:123: warning: structure defined inside parms
    
    C:/PROGRAMS/DEV-CPP/include/netdb.h:123: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/netdb.h:134: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/netdb.h:134: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/netdb.h:215: error: syntax error before "__BEGIN_DECLS"
    C:/PROGRAMS/DEV-CPP/include/netdb.h:247: error: syntax error before "socklen_t"
    C:/PROGRAMS/DEV-CPP/include/netdb.h:272: error: syntax error before "__END_DECLS"
    In file included from dm-dist/comm.c:18:
    C:/PROGRAMS/DEV-CPP/include/string.h:37: warning: `__pure__' attribute ignored
    C:/PROGRAMS/DEV-CPP/include/string.h:42: warning: `__pure__' attribute ignored
    C:/PROGRAMS/DEV-CPP/include/string.h:43: warning: `__pure__' attribute ignored
    C:/PROGRAMS/DEV-CPP/include/string.h:46: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:49: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:51: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:53: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:54: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:55: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:56: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:67: warning: `__malloc__' attribute ignored
    C:/PROGRAMS/DEV-CPP/include/string.h:92: warning: `__malloc__' attribute ignored
    C:/PROGRAMS/DEV-CPP/include/string.h:97: error: storage class specified for parameter `strcasecmp'
    C:/PROGRAMS/DEV-CPP/include/string.h:97: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/string.h:103: error: storage class specified for parameter `strncasecmp'
    C:/PROGRAMS/DEV-CPP/include/string.h:103: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/string.h:170: error: storage class specified for parameter `wcscmpi'
    C:/PROGRAMS/DEV-CPP/include/string.h:170: error: redefinition of parameter 'wcscmpi'
    C:/PROGRAMS/DEV-CPP/include/string.h:167: error: previous definition of 'wcscmpi' was here
    C:/PROGRAMS/DEV-CPP/include/string.h:170: error: syntax error before '{' token
    In file included from C:/PROGRAMS/DEV-CPP/include/sys/time.h:2,
                     from dm-dist/comm.c:19:
    C:/PROGRAMS/DEV-CPP/include/time.h:55: error: storage class specified for parameter `clock_t'
    C:/PROGRAMS/DEV-CPP/include/time.h:76: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/time.h:76: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/time.h:84: error: syntax error before "clock_t"
    
    C:/PROGRAMS/DEV-CPP/include/time.h:108: error: storage class specified for parameter `_tzset'
    
    C:/PROGRAMS/DEV-CPP/include/time.h:111: error: storage class specified for parameter `tzset'
    C:/PROGRAMS/DEV-CPP/include/time.h:135: error: storage class specified for parameter `__p__daylight'
    C:/PROGRAMS/DEV-CPP/include/time.h:136: error: storage class specified for parameter `__p__timezone'
    C:/PROGRAMS/DEV-CPP/include/time.h:137: error: storage class specified for parameter `__p__tzname'
    C:/PROGRAMS/DEV-CPP/include/time.h:139: error: storage class specified for parameter `_daylight'
    
    C:/PROGRAMS/DEV-CPP/include/time.h:140: error: storage class specified for parameter `_timezone'
    C:/PROGRAMS/DEV-CPP/include/time.h:141: error: storage class specified for parameter `_tzname'
    C:/PROGRAMS/DEV-CPP/include/time.h:173: error: storage class specified for parameter `daylight'
    C:/PROGRAMS/DEV-CPP/include/time.h:174: error: storage class specified for parameter `timezone'
    C:/PROGRAMS/DEV-CPP/include/time.h:175: error: storage class specified for parameter `tzname'
    In file included from dm-dist/comm.c:19:
    C:/PROGRAMS/DEV-CPP/include/sys/time.h:9: warning: structure defined inside parms
    
    C:/PROGRAMS/DEV-CPP/include/sys/time.h:9: warning: empty declaration
    In file included from C:/PROGRAMS/DEV-CPP/include/io.h:21,
                     from C:/PROGRAMS/DEV-CPP/include/fcntl.h:20,
                     from dm-dist/comm.c:20:
    C:/PROGRAMS/DEV-CPP/include/stdint.h:27: error: storage class specified for parameter `int8_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:28: error: storage class specified for parameter `uint8_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:29: error: storage class specified for parameter `int16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:30: error: storage class specified for parameter `uint16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:30: error: conflicting types for 'uint16_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:70: error: previous definition of 'uint16_t' was here
    C:/PROGRAMS/DEV-CPP/include/stdint.h:31: error: storage class specified for parameter `int32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:32: error: storage class specified for parameter `uint32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:32: error: conflicting types for 'uint32_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:65: error: previous definition of 'uint32_t' was here
    C:/PROGRAMS/DEV-CPP/include/stdint.h:33: error: storage class specified for parameter `int64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:34: error: storage class specified for parameter `uint64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:37: error: storage class specified for parameter `int_least8_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:38: error: storage class specified for parameter `uint_least8_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:39: error: storage class specified for parameter `int_least16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:40: error: storage class specified for parameter `uint_least16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:41: error: storage class specified for parameter `int_least32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:42: error: storage class specified for parameter `uint_least32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:43: error: storage class specified for parameter `int_least64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:44: error: storage class specified for parameter `uint_least64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:50: error: storage class specified for parameter `int_fast8_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:51: error: storage class specified for parameter `uint_fast8_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:52: error: storage class specified for parameter `int_fast16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:53: error: storage class specified for parameter `uint_fast16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:54: error: storage class specified for parameter `int_fast32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:55: error: storage class specified for parameter `uint_fast32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:56: error: storage class specified for parameter `int_fast64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:57: error: storage class specified for parameter `uint_fast64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:60: error: storage class specified for parameter `intptr_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:61: error: storage class specified for parameter `uintptr_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:64: error: storage class specified for parameter `intmax_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:65: error: storage class specified for parameter `uintmax_t'
    In file included from C:/PROGRAMS/DEV-CPP/include/fcntl.h:20,
                     from dm-dist/comm.c:20:
    C:/PROGRAMS/DEV-CPP/include/io.h:38: error: storage class specified for parameter `_fsize_t'
    C:/PROGRAMS/DEV-CPP/include/io.h:61: error: syntax error before "_fsize_t"
    C:/PROGRAMS/DEV-CPP/include/io.h:61: warning: no semicolon at end of struct or union
    C:/PROGRAMS/DEV-CPP/include/io.h:63: error: syntax error before '}' token
    C:/PROGRAMS/DEV-CPP/include/io.h:72: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/io.h:72: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/io.h:79: error: syntax error before "_fsize_t"
    C:/PROGRAMS/DEV-CPP/include/io.h:79: warning: no semicolon at end of struct or union
    C:/PROGRAMS/DEV-CPP/include/io.h:80: error: redefinition of parameter 'name'
    C:/PROGRAMS/DEV-CPP/include/io.h:62: error: previous definition of 'name' was here
    C:/PROGRAMS/DEV-CPP/include/io.h:81: error: syntax error before '}' token
    
    C:/PROGRAMS/DEV-CPP/include/io.h:89: error: syntax error before "_fsize_t"
    C:/PROGRAMS/DEV-CPP/include/io.h:89: warning: no semicolon at end of struct or union
    C:/PROGRAMS/DEV-CPP/include/io.h:90: error: conflicting types for 'name'
    C:/PROGRAMS/DEV-CPP/include/io.h:80: error: previous definition of 'name' was here
    
    C:/PROGRAMS/DEV-CPP/include/io.h:91: error: syntax error before '}' token
    C:/PROGRAMS/DEV-CPP/include/io.h:100: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/io.h:100: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/io.h:107: error: syntax error before "_fsize_t"
    C:/PROGRAMS/DEV-CPP/include/io.h:107: warning: no semicolon at end of struct or union
    
    C:/PROGRAMS/DEV-CPP/include/io.h:108: error: redefinition of parameter 'name'
    C:/PROGRAMS/DEV-CPP/include/io.h:90: error: previous definition of 'name' was here
    C:/PROGRAMS/DEV-CPP/include/io.h:109: error: syntax error before '}' token
    C:/PROGRAMS/DEV-CPP/include/io.h:150: error: storage class specified for parameter `lseek64'
    C:/PROGRAMS/DEV-CPP/include/io.h:150: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/io.h:272: error: conflicting types for 'close'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:701: error: previous definition of 'close' was here
    C:/PROGRAMS/DEV-CPP/include/io.h:280: error: conflicting types for 'open'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:699: error: previous definition of 'open' was here
    C:/PROGRAMS/DEV-CPP/include/io.h:287: error: redefinition of parameter 'write'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:773: error: previous definition of 'write' was here
    In file included from dm-dist/comm.c:21:
    C:/PROGRAMS/DEV-CPP/include/signal.h:46: error: storage class specified for parameter `sig_atomic_t'
    C:/PROGRAMS/DEV-CPP/include/signal.h:60: error: storage class specified for parameter `__p_sig_fn_t'
    C:/PROGRAMS/DEV-CPP/include/signal.h:84: error: syntax error before "__p_sig_fn_t"
    In file included from dm-dist/comm.c:23:
    dm-dist/structs.h:8: error: storage class specified for parameter `sbyte'
    dm-dist/structs.h:9: error: storage class specified for parameter `ubyte'
    dm-dist/structs.h:10: error: storage class specified for parameter `sh_int'
    
    dm-dist/structs.h:11: error: storage class specified for parameter `ush_int'
    dm-dist/structs.h:12: error: storage class specified for parameter `bool'
    dm-dist/structs.h:12: error: conflicting types for 'bool'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:595: error: previous definition of 'bool' was here
    dm-dist/structs.h:13: error: storage class specified for parameter `byte'
    dm-dist/structs.h:133: warning: structure defined inside parms
    dm-dist/structs.h:133: warning: empty declaration
    dm-dist/structs.h:141: error: syntax error before "byte"
    dm-dist/structs.h:141: warning: no semicolon at end of struct or union
    dm-dist/structs.h:149: error: syntax error before '}' token
    dm-dist/structs.h:153: error: syntax error before "byte"
    dm-dist/structs.h:153: warning: no semicolon at end of struct or union
    
    dm-dist/structs.h:160: error: syntax error before "sh_int"
    dm-dist/structs.h:160: warning: no semicolon at end of struct or union
    dm-dist/structs.h:166: error: conflicting types for 'name'
    
    C:/PROGRAMS/DEV-CPP/include/io.h:108: error: previous definition of 'name' was here
    dm-dist/structs.h:178: error: syntax error before '}' token
    dm-dist/structs.h:229: error: syntax error before "sh_int"
    dm-dist/structs.h:229: warning: no semicolon at end of struct or union
    dm-dist/structs.h:237: error: syntax error before "sh_int"
    dm-dist/structs.h:237: warning: no semicolon at end of struct or union
    dm-dist/structs.h:240: error: redefinition of parameter 'name'
    dm-dist/structs.h:166: error: previous definition of 'name' was here
    
    dm-dist/structs.h:241: error: redefinition of parameter 'description'
    dm-dist/structs.h:167: error: previous definition of 'description' was here
    dm-dist/structs.h:242: error: redefinition of parameter 'ex_description'
    dm-dist/structs.h:170: error: previous definition of 'ex_description' was here
    dm-dist/structs.h:244: error: syntax error before "sh_int"
    dm-dist/structs.h:250: error: syntax error before '}' token
    dm-dist/structs.h:398: error: syntax error before "byte"
    dm-dist/structs.h:398: warning: no semicolon at end of struct or union
    dm-dist/structs.h:408: warning: structure defined inside parms
    dm-dist/structs.h:408: warning: empty declaration
    dm-dist/structs.h:417: error: syntax error before "byte"
    dm-dist/structs.h:417: warning: no semicolon at end of struct or union
    dm-dist/structs.h:421: error: syntax error before "bool"
    dm-dist/structs.h:422: error: conflicting types for 'time'
    C:/PROGRAMS/DEV-CPP/include/time.h:85: error: previous definition of 'time' was here
    dm-dist/structs.h:423: error: syntax error before "ubyte"
    dm-dist/structs.h:431: error: syntax error before "sbyte"
    
    dm-dist/structs.h:431: warning: no semicolon at end of struct or union
    dm-dist/structs.h:443: error: syntax error before "sh_int"
    dm-dist/structs.h:443: warning: no semicolon at end of struct or union
    dm-dist/structs.h:454: error: syntax error before "sbyte"
    dm-dist/structs.h:466: error: syntax error before "byte"
    dm-dist/structs.h:466: warning: no semicolon at end of struct or union
    dm-dist/structs.h:473: error: syntax error before "byte"
    dm-dist/structs.h:474: error: redefinition of parameter 'timer'
    dm-dist/structs.h:147: error: previous definition of 'timer' was here
    dm-dist/structs.h:475: error: syntax error before "sh_int"
    dm-dist/structs.h:484: error: syntax error before '}' token
    dm-dist/structs.h:490: error: syntax error before "byte"
    dm-dist/structs.h:490: warning: no semicolon at end of struct or union
    dm-dist/structs.h:499: error: syntax error before "sbyte"
    dm-dist/structs.h:499: warning: no semicolon at end of struct or union
    dm-dist/structs.h:503: error: redefinition of parameter 'bitvector'
    dm-dist/structs.h:148: error: previous definition of 'bitvector' was here
    dm-dist/structs.h:505: error: redefinition of parameter 'next'
    dm-dist/structs.h:177: error: previous definition of 'next' was here
    dm-dist/structs.h:506: error: syntax error before '}' token
    dm-dist/structs.h:512: warning: structure defined inside parms
    dm-dist/structs.h:512: warning: empty declaration
    dm-dist/structs.h:517: error: syntax error before "sh_int"
    dm-dist/structs.h:517: warning: no semicolon at end of struct or union
    dm-dist/structs.h:527: error: redefinition of parameter 'affected'
    dm-dist/structs.h:164: error: previous definition of 'affected' was here
    dm-dist/structs.h:534: error: redefinition of parameter 'next'
    dm-dist/structs.h:505: error: previous definition of 'next' was here
    dm-dist/structs.h:539: error: syntax error before '}' token
    dm-dist/structs.h:564: warning: structure defined inside parms
    dm-dist/structs.h:564: warning: empty declaration
    dm-dist/structs.h:574: error: syntax error before "byte"
    dm-dist/structs.h:574: warning: no semicolon at end of struct or union
    dm-dist/structs.h:580: error: syntax error before "ubyte"
    dm-dist/structs.h:584: error: syntax error before "sh_int"
    
    dm-dist/structs.h:585: error: redefinition of parameter 'description'
    dm-dist/structs.h:241: error: previous definition of 'description' was here
    dm-dist/structs.h:586: error: syntax error before "bool"
    dm-dist/structs.h:590: error: redefinition of parameter 'abilities'
    dm-dist/structs.h:521: error: previous definition of 'abilities' was here
    dm-dist/structs.h:592: error: redefinition of parameter 'points'
    
    dm-dist/structs.h:523: error: previous definition of 'points' was here
    dm-dist/structs.h:594: error: redefinition of parameter 'skills'
    dm-dist/structs.h:525: error: previous definition of 'skills' was here
    dm-dist/structs.h:596: error: redefinition of parameter 'affected'
    dm-dist/structs.h:527: error: previous definition of 'affected' was here
    
    dm-dist/structs.h:600: error: syntax error before "byte"
    dm-dist/structs.h:601: error: redefinition of parameter 'alignment'
    dm-dist/structs.h:483: error: previous definition of 'alignment' was here
    dm-dist/structs.h:604: error: syntax error before "ubyte"
    dm-dist/structs.h:607: error: redefinition of parameter 'name'
    dm-dist/structs.h:240: error: previous definition of 'name' was here
    dm-dist/structs.h:609: error: syntax error before "sh_int"
    dm-dist/structs.h:611: error: syntax error before '}' token
    dm-dist/structs.h:624: error: syntax error before "sh_int"
    
    Käivitus peatatud
    If I added the library and object files from lib folder to my project(except readme), I didn't get any less errors:
    Code:
    Kompilaator: Default compiler
    Building Makefile: "C:\Programs\Dev-Cpp\Makefile.win"
     make... käivitus
    make.exe -f "C:\Programs\Dev-Cpp\Makefile.win" all
    gcc.exe -c dm-dist/comm.c -o dm-dist/comm.o -I"C:/PROGRAMS/DEV-CPP/include"    -fno-access-control
    
    cc1.exe: warning: command line option "-fno-access-control" is valid for C++/ObjC++ but not for C
    
    In file included from dm-dist/comm.c:14:
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:1: error: syntax error before "web"
    In file included from dm-dist/comm.c:14:
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:67:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:71:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:75:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:80:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:81:10: #include expects "FILENAME" or <FILENAME>
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:101: error: syntax error before "__EXPORT"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:101: warning: data definition has no type or storage class
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:102: error: syntax error before "__EXPORT"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:102: warning: data definition has no type or storage class
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:103: error: syntax error before "__EXPORT"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:103: warning: data definition has no type or storage class
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:105: error: syntax error before "__EXPORT"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:106: error: syntax error before '{' token
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:110: error: syntax error before "void"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:111: error: syntax error before "address"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:111: error: `operator' declared as function returning a function
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h: In function `operator':
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:120: error: syntax error before "address"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:120: error: `operator' declared as function returning a function
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:148: error: syntax error before "mutable"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:150: error: storage class specified for parameter `MutexCounter'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:150: error: syntax error before "counter"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:159: error: syntax error before "public"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:170: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:174: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:176: error: conflicting types for 'getAddress'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:174: error: previous definition of 'getAddress' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:176: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:178: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:186: error: syntax error before '&' token
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:229: error: stray '\' in program
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:229: error: missing terminating " character
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:278: error: storage class specified for parameter `Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:287: warning: enum defined inside parms
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:287: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:288: error: storage class specified for parameter `Tos'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:295: warning: enum defined inside parms
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:295: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:296: error: storage class specified for parameter `Pending'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:298: error: syntax error before "protected"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:308: error: storage class specified for parameter `State'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:310: error: syntax error before "private"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:317: error: syntax error before "friend"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:330: error: syntax error before ':' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:338: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:341: error: syntax error before "enable"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:346: error: syntax error before "Error"
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:371: error: syntax error before "timeout_t"
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:389: error: syntax error before "immediate"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:403: error: syntax error before "isBroadcast"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:406: error: redefinition of parameter 'bool'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:403: error: previous definition of 'bool' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:406: error: syntax error before "isRouted"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:409: error: conflicting types for 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:278: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:409: error: syntax error before "getErrorNumber"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:436: error: syntax error before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:444: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:447: error: syntax error before '{' token
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:452: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:469: error: syntax error before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:469: error: redefinition of parameter 'setPeer'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:436: error: previous definition of 'setPeer' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:489: error: conflicting types for 'send'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:444: error: previous definition of 'send' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:489: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:502: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:409: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:502: error: syntax error before "setMulticast"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:505: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:502: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:505: error: syntax error before "setTimeToLive"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:516: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:505: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:516: error: syntax error before "setRouting"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:519: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:516: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:519: error: syntax error before "setTypeOfService"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:522: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:519: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:522: error: syntax error before "setBroadcast"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:537: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:542: error: redefinition of parameter 'Error'
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:522: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:542: error: syntax error before "setRouting"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:545: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:542: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:545: error: syntax error before "setMulticast"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:548: error: redefinition of parameter 'Error'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:545: error: previous definition of 'Error' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:548: error: syntax error before "join"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:558: error: redefinition of parameter 'bool'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:406: error: previous definition of 'bool' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:558: error: syntax error before "isInputReady"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:587: error: syntax error before "getRequest"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:592: error: redefinition of parameter 'InetHostAddress'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:587: error: previous definition of 'InetHostAddress' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:592: error: syntax error before "getLocal"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:595: error: redefinition of parameter 'bool'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:558: error: previous definition of 'bool' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:595: error: syntax error before "isPendingConnection"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:619: error: redefinition of parameter 'InetHostAddress'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:592: error: previous definition of 'InetHostAddress' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:619: error: syntax error before "getSender"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:624: error: syntax error before "friend"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:632: error: syntax error before "TCPStream"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:644: error: syntax error before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:654: error: syntax error before "to"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:676: error: syntax error before "bool"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:679: error: redefinition of parameter 'peek'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:452: error: previous definition of 'peek' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:679: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:681: error: syntax error before "const"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:697: error: syntax error before '=' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:699: error: syntax error before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:699: error: redefinition of parameter 'open'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:697: error: previous definition of 'open' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:703: error: syntax error before "bool"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:716: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:725: error: storage class specified for parameter `__EXPORT'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:725: error: syntax error before "std"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:727: error: syntax error before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:753: error: redefinition of parameter 'endStream'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:636: error: previous definition of 'endStream' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:755: error: syntax error before '&' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:769: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:773: error: syntax error before "timeout_t"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:775: error: syntax error before "timeout_t"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:775: error: redefinition of parameter 'peek'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:679: error: previous definition of 'peek' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:807: error: syntax error before '*' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:812: warning: parameter names (without types) in function declaration
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:814: error: syntax error before "bool"
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:837: error: redefinition of parameter 'send'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:489: error: previous definition of 'send' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:837: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:840: error: redefinition of parameter 'receive'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:447: error: previous definition of 'receive' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:840: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:843: error: redefinition of parameter 'peek'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:775: error: previous definition of 'peek' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:843: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:848: error: syntax error before "timeout"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:864: error: syntax error before "SocketPort"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:866: error: syntax error before '*' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:866: error: redefinition of parameter 'attach'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:807: error: previous definition of 'attach' was here
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:867: error: syntax error before '*' token
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:871: error: syntax error before "friend"
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:890: error: syntax error before "const"
    In file included from dm-dist/comm.c:15:
    C:/PROGRAMS/DEV-CPP/include/sys/wait.h:36:23: sys/cdefs.h: No such file or directory
    In file included from dm-dist/comm.c:15:
    C:/PROGRAMS/DEV-CPP/include/sys/wait.h:110: error: syntax error before "__END_DECLS"
    
    In file included from dm-dist/comm.c:16:
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:37:24: sys/_types.h: No such file or directory
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:38:28: machine/endian.h: No such file or directory
    
    In file included from dm-dist/comm.c:16:
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:55: error: storage class specified for parameter `__uint16_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:55: error: syntax error before "uint16_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:60: error: storage class specified for parameter `__uint32_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:60: error: syntax error before "uint32_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:65: error: storage class specified for parameter `uint32_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:65: error: syntax error before "in_addr_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:70: error: storage class specified for parameter `uint16_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:70: error: syntax error before "in_port_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:75: error: storage class specified for parameter `__sa_family_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:75: error: syntax error before "sa_family_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:82: error: syntax error before "in_addr_t"
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:82: warning: no semicolon at end of struct or union
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:89: error: syntax error before "uint8_t"
    
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:89: warning: no semicolon at end of struct or union
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:94: error: syntax error before '}' token
    In file included from dm-dist/comm.c:17:
    C:/PROGRAMS/DEV-CPP/include/netdb.h:99: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/netdb.h:99: warning: empty declaration
    
    C:/PROGRAMS/DEV-CPP/include/netdb.h:110: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/netdb.h:110: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/netdb.h:117: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/netdb.h:117: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/netdb.h:123: warning: structure defined inside parms
    
    C:/PROGRAMS/DEV-CPP/include/netdb.h:123: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/netdb.h:134: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/netdb.h:134: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/netdb.h:215: error: syntax error before "__BEGIN_DECLS"
    C:/PROGRAMS/DEV-CPP/include/netdb.h:247: error: syntax error before "socklen_t"
    C:/PROGRAMS/DEV-CPP/include/netdb.h:272: error: syntax error before "__END_DECLS"
    
    In file included from dm-dist/comm.c:18:
    C:/PROGRAMS/DEV-CPP/include/string.h:37: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:42: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:43: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:46: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:49: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:51: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:53: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:54: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:55: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:56: warning: `__pure__' attribute ignored
    
    C:/PROGRAMS/DEV-CPP/include/string.h:67: warning: `__malloc__' attribute ignored
    C:/PROGRAMS/DEV-CPP/include/string.h:92: warning: `__malloc__' attribute ignored
    C:/PROGRAMS/DEV-CPP/include/string.h:97: error: storage class specified for parameter `strcasecmp'
    C:/PROGRAMS/DEV-CPP/include/string.h:97: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/string.h:103: error: storage class specified for parameter `strncasecmp'
    C:/PROGRAMS/DEV-CPP/include/string.h:103: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/string.h:170: error: storage class specified for parameter `wcscmpi'
    C:/PROGRAMS/DEV-CPP/include/string.h:170: error: redefinition of parameter 'wcscmpi'
    C:/PROGRAMS/DEV-CPP/include/string.h:167: error: previous definition of 'wcscmpi' was here
    C:/PROGRAMS/DEV-CPP/include/string.h:170: error: syntax error before '{' token
    In file included from C:/PROGRAMS/DEV-CPP/include/sys/time.h:2,
                     from dm-dist/comm.c:19:
    C:/PROGRAMS/DEV-CPP/include/time.h:55: error: storage class specified for parameter `clock_t'
    C:/PROGRAMS/DEV-CPP/include/time.h:76: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/time.h:76: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/time.h:84: error: syntax error before "clock_t"
    C:/PROGRAMS/DEV-CPP/include/time.h:108: error: storage class specified for parameter `_tzset'
    C:/PROGRAMS/DEV-CPP/include/time.h:111: error: storage class specified for parameter `tzset'
    C:/PROGRAMS/DEV-CPP/include/time.h:135: error: storage class specified for parameter `__p__daylight'
    C:/PROGRAMS/DEV-CPP/include/time.h:136: error: storage class specified for parameter `__p__timezone'
    C:/PROGRAMS/DEV-CPP/include/time.h:137: error: storage class specified for parameter `__p__tzname'
    C:/PROGRAMS/DEV-CPP/include/time.h:139: error: storage class specified for parameter `_daylight'
    C:/PROGRAMS/DEV-CPP/include/time.h:140: error: storage class specified for parameter `_timezone'
    C:/PROGRAMS/DEV-CPP/include/time.h:141: error: storage class specified for parameter `_tzname'
    C:/PROGRAMS/DEV-CPP/include/time.h:173: error: storage class specified for parameter `daylight'
    C:/PROGRAMS/DEV-CPP/include/time.h:174: error: storage class specified for parameter `timezone'
    C:/PROGRAMS/DEV-CPP/include/time.h:175: error: storage class specified for parameter `tzname'
    In file included from dm-dist/comm.c:19:
    C:/PROGRAMS/DEV-CPP/include/sys/time.h:9: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/sys/time.h:9: warning: empty declaration
    
    In file included from C:/PROGRAMS/DEV-CPP/include/io.h:21,
                     from C:/PROGRAMS/DEV-CPP/include/fcntl.h:20,
                     from dm-dist/comm.c:20:
    C:/PROGRAMS/DEV-CPP/include/stdint.h:27: error: storage class specified for parameter `int8_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:28: error: storage class specified for parameter `uint8_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:29: error: storage class specified for parameter `int16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:30: error: storage class specified for parameter `uint16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:30: error: conflicting types for 'uint16_t'
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:70: error: previous definition of 'uint16_t' was here
    C:/PROGRAMS/DEV-CPP/include/stdint.h:31: error: storage class specified for parameter `int32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:32: error: storage class specified for parameter `uint32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:32: error: conflicting types for 'uint32_t'
    
    C:/PROGRAMS/DEV-CPP/include/netinet/in.h:65: error: previous definition of 'uint32_t' was here
    
    C:/PROGRAMS/DEV-CPP/include/stdint.h:33: error: storage class specified for parameter `int64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:34: error: storage class specified for parameter `uint64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:37: error: storage class specified for parameter `int_least8_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:38: error: storage class specified for parameter `uint_least8_t'
    
    C:/PROGRAMS/DEV-CPP/include/stdint.h:39: error: storage class specified for parameter `int_least16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:40: error: storage class specified for parameter `uint_least16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:41: error: storage class specified for parameter `int_least32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:42: error: storage class specified for parameter `uint_least32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:43: error: storage class specified for parameter `int_least64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:44: error: storage class specified for parameter `uint_least64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:50: error: storage class specified for parameter `int_fast8_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:51: error: storage class specified for parameter `uint_fast8_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:52: error: storage class specified for parameter `int_fast16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:53: error: storage class specified for parameter `uint_fast16_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:54: error: storage class specified for parameter `int_fast32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:55: error: storage class specified for parameter `uint_fast32_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:56: error: storage class specified for parameter `int_fast64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:57: error: storage class specified for parameter `uint_fast64_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:60: error: storage class specified for parameter `intptr_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:61: error: storage class specified for parameter `uintptr_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:64: error: storage class specified for parameter `intmax_t'
    C:/PROGRAMS/DEV-CPP/include/stdint.h:65: error: storage class specified for parameter `uintmax_t'
    In file included from C:/PROGRAMS/DEV-CPP/include/fcntl.h:20,
                     from dm-dist/comm.c:20:
    C:/PROGRAMS/DEV-CPP/include/io.h:38: error: storage class specified for parameter `_fsize_t'
    
    C:/PROGRAMS/DEV-CPP/include/io.h:61: error: syntax error before "_fsize_t"
    C:/PROGRAMS/DEV-CPP/include/io.h:61: warning: no semicolon at end of struct or union
    C:/PROGRAMS/DEV-CPP/include/io.h:63: error: syntax error before '}' token
    C:/PROGRAMS/DEV-CPP/include/io.h:72: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/io.h:72: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/io.h:79: error: syntax error before "_fsize_t"
    C:/PROGRAMS/DEV-CPP/include/io.h:79: warning: no semicolon at end of struct or union
    C:/PROGRAMS/DEV-CPP/include/io.h:80: error: redefinition of parameter 'name'
    C:/PROGRAMS/DEV-CPP/include/io.h:62: error: previous definition of 'name' was here
    
    C:/PROGRAMS/DEV-CPP/include/io.h:81: error: syntax error before '}' token
    C:/PROGRAMS/DEV-CPP/include/io.h:89: error: syntax error before "_fsize_t"
    C:/PROGRAMS/DEV-CPP/include/io.h:89: warning: no semicolon at end of struct or union
    C:/PROGRAMS/DEV-CPP/include/io.h:90: error: conflicting types for 'name'
    C:/PROGRAMS/DEV-CPP/include/io.h:80: error: previous definition of 'name' was here
    C:/PROGRAMS/DEV-CPP/include/io.h:91: error: syntax error before '}' token
    C:/PROGRAMS/DEV-CPP/include/io.h:100: warning: structure defined inside parms
    C:/PROGRAMS/DEV-CPP/include/io.h:100: warning: empty declaration
    C:/PROGRAMS/DEV-CPP/include/io.h:107: error: syntax error before "_fsize_t"
    C:/PROGRAMS/DEV-CPP/include/io.h:107: warning: no semicolon at end of struct or union
    C:/PROGRAMS/DEV-CPP/include/io.h:108: error: redefinition of parameter 'name'
    C:/PROGRAMS/DEV-CPP/include/io.h:90: error: previous definition of 'name' was here
    C:/PROGRAMS/DEV-CPP/include/io.h:109: error: syntax error before '}' token
    C:/PROGRAMS/DEV-CPP/include/io.h:150: error: storage class specified for parameter `lseek64'
    C:/PROGRAMS/DEV-CPP/include/io.h:150: error: syntax error before '{' token
    C:/PROGRAMS/DEV-CPP/include/io.h:272: error: conflicting types for 'close'
    
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:701: error: previous definition of 'close' was here
    C:/PROGRAMS/DEV-CPP/include/io.h:280: error: conflicting types for 'open'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:699: error: previous definition of 'open' was here
    C:/PROGRAMS/DEV-CPP/include/io.h:287: error: redefinition of parameter 'write'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:773: error: previous definition of 'write' was here
    In file included from dm-dist/comm.c:21:
    C:/PROGRAMS/DEV-CPP/include/signal.h:46: error: storage class specified for parameter `sig_atomic_t'
    C:/PROGRAMS/DEV-CPP/include/signal.h:60: error: storage class specified for parameter `__p_sig_fn_t'
    C:/PROGRAMS/DEV-CPP/include/signal.h:84: error: syntax error before "__p_sig_fn_t"
    In file included from dm-dist/comm.c:23:
    dm-dist/structs.h:8: error: storage class specified for parameter `sbyte'
    dm-dist/structs.h:9: error: storage class specified for parameter `ubyte'
    dm-dist/structs.h:10: error: storage class specified for parameter `sh_int'
    dm-dist/structs.h:11: error: storage class specified for parameter `ush_int'
    dm-dist/structs.h:12: error: storage class specified for parameter `bool'
    dm-dist/structs.h:12: error: conflicting types for 'bool'
    C:/PROGRAMS/DEV-CPP/include/sys/socket.h:595: error: previous definition of 'bool' was here
    dm-dist/structs.h:13: error: storage class specified for parameter `byte'
    dm-dist/structs.h:133: warning: structure defined inside parms
    dm-dist/structs.h:133: warning: empty declaration
    dm-dist/structs.h:141: error: syntax error before "byte"
    dm-dist/structs.h:141: warning: no semicolon at end of struct or union
    dm-dist/structs.h:149: error: syntax error before '}' token
    dm-dist/structs.h:153: error: syntax error before "byte"
    dm-dist/structs.h:153: warning: no semicolon at end of struct or union
    dm-dist/structs.h:160: error: syntax error before "sh_int"
    dm-dist/structs.h:160: warning: no semicolon at end of struct or union
    dm-dist/structs.h:166: error: conflicting types for 'name'
    C:/PROGRAMS/DEV-CPP/include/io.h:108: error: previous definition of 'name' was here
    
    dm-dist/structs.h:178: error: syntax error before '}' token
    dm-dist/structs.h:229: error: syntax error before "sh_int"
    dm-dist/structs.h:229: warning: no semicolon at end of struct or union
    dm-dist/structs.h:237: error: syntax error before "sh_int"
    dm-dist/structs.h:237: warning: no semicolon at end of struct or union
    dm-dist/structs.h:240: error: redefinition of parameter 'name'
    dm-dist/structs.h:166: error: previous definition of 'name' was here
    dm-dist/structs.h:241: error: redefinition of parameter 'description'
    dm-dist/structs.h:167: error: previous definition of 'description' was here
    dm-dist/structs.h:242: error: redefinition of parameter 'ex_description'
    dm-dist/structs.h:170: error: previous definition of 'ex_description' was here
    dm-dist/structs.h:244: error: syntax error before "sh_int"
    dm-dist/structs.h:250: error: syntax error before '}' token
    dm-dist/structs.h:398: error: syntax error before "byte"
    dm-dist/structs.h:398: warning: no semicolon at end of struct or union
    dm-dist/structs.h:408: warning: structure defined inside parms
    dm-dist/structs.h:408: warning: empty declaration
    dm-dist/structs.h:417: error: syntax error before "byte"
    dm-dist/structs.h:417: warning: no semicolon at end of struct or union
    dm-dist/structs.h:421: error: syntax error before "bool"
    dm-dist/structs.h:422: error: conflicting types for 'time'
    C:/PROGRAMS/DEV-CPP/include/time.h:85: error: previous definition of 'time' was here
    dm-dist/structs.h:423: error: syntax error before "ubyte"
    
    dm-dist/structs.h:431: error: syntax error before "sbyte"
    dm-dist/structs.h:431: warning: no semicolon at end of struct or union
    dm-dist/structs.h:443: error: syntax error before "sh_int"
    dm-dist/structs.h:443: warning: no semicolon at end of struct or union
    dm-dist/structs.h:454: error: syntax error before "sbyte"
    dm-dist/structs.h:466: error: syntax error before "byte"
    dm-dist/structs.h:466: warning: no semicolon at end of struct or union
    dm-dist/structs.h:473: error: syntax error before "byte"
    dm-dist/structs.h:474: error: redefinition of parameter 'timer'
    dm-dist/structs.h:147: error: previous definition of 'timer' was here
    dm-dist/structs.h:475: error: syntax error before "sh_int"
    dm-dist/structs.h:484: error: syntax error before '}' token
    dm-dist/structs.h:490: error: syntax error before "byte"
    dm-dist/structs.h:490: warning: no semicolon at end of struct or union
    dm-dist/structs.h:499: error: syntax error before "sbyte"
    dm-dist/structs.h:499: warning: no semicolon at end of struct or union
    dm-dist/structs.h:503: error: redefinition of parameter 'bitvector'
    dm-dist/structs.h:148: error: previous definition of 'bitvector' was here
    dm-dist/structs.h:505: error: redefinition of parameter 'next'
    dm-dist/structs.h:177: error: previous definition of 'next' was here
    dm-dist/structs.h:506: error: syntax error before '}' token
    dm-dist/structs.h:512: warning: structure defined inside parms
    dm-dist/structs.h:512: warning: empty declaration
    dm-dist/structs.h:517: error: syntax error before "sh_int"
    dm-dist/structs.h:517: warning: no semicolon at end of struct or union
    dm-dist/structs.h:527: error: redefinition of parameter 'affected'
    dm-dist/structs.h:164: error: previous definition of 'affected' was here
    dm-dist/structs.h:534: error: redefinition of parameter 'next'
    dm-dist/structs.h:505: error: previous definition of 'next' was here
    dm-dist/structs.h:539: error: syntax error before '}' token
    dm-dist/structs.h:564: warning: structure defined inside parms
    dm-dist/structs.h:564: warning: empty declaration
    dm-dist/structs.h:574: error: syntax error before "byte"
    dm-dist/structs.h:574: warning: no semicolon at end of struct or union
    dm-dist/structs.h:580: error: syntax error before "ubyte"
    dm-dist/structs.h:584: error: syntax error before "sh_int"
    dm-dist/structs.h:585: error: redefinition of parameter 'description'
    dm-dist/structs.h:241: error: previous definition of 'description' was here
    dm-dist/structs.h:586: error: syntax error before "bool"
    dm-dist/structs.h:590: error: redefinition of parameter 'abilities'
    dm-dist/structs.h:521: error: previous definition of 'abilities' was here
    dm-dist/structs.h:592: error: redefinition of parameter 'points'
    dm-dist/structs.h:523: error: previous definition of 'points' was here
    dm-dist/structs.h:594: error: redefinition of parameter 'skills'
    dm-dist/structs.h:525: error: previous definition of 'skills' was here
    dm-dist/structs.h:596: error: redefinition of parameter 'affected'
    dm-dist/structs.h:527: error: previous definition of 'affected' was here
    dm-dist/structs.h:600: error: syntax error before "byte"
    dm-dist/structs.h:601: error: redefinition of parameter 'alignment'
    dm-dist/structs.h:483: error: previous definition of 'alignment' was here
    dm-dist/structs.h:604: error: syntax error before "ubyte"
    
    dm-dist/structs.h:607: error: redefinition of parameter 'name'
    
    dm-dist/structs.h:687: warning: structure defined inside parms
    
    G__~1.EXE: dm-dist/comm.o: No such file or directory
    
    Käivitus peatatud
    And I got rid of that access-control warning when I removed the access control in the project settings.
    Any ideas?
    Last edited by maxorator; 10-01-2005 at 07:30 AM.

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    all those thousands of errors are caused because you are attempting to compile a program written for *nix os with a compiler under MS-Windows. The very first error should have been obvious -- M$ compilers, and Dev-C++, do not support sys/socket.h. They use winsock.h instead for the MS-Windows operating system. Just downloading header files from the internet is not of any value because you also need *.lib files that contain the compiled code for the functions in the header files.

    If you must really compile that program you will probably need to download g++ for MS-Windows from GNU site. I think that distribution is compatible with *nix.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21