I keep getting this problem while compiling:
gcc -c -O -g3 -Wall -Wuninitialized -p -DNOCRYPT -DROT comm.c
comm.c: In function `main':
comm.c:470: warning: implicit declaration of function `close'
comm.c: In function `read_from_descriptor':
comm.c:1548: warning: implicit declaration of function `read'
comm.c: In function `read_from_buffer':
comm.c:1646: parse error before `else'
comm.c:1587: warning: unused variable `j'
comm.c: At top level:
comm.c:1672: parse error before `if'
comm.c:1692: warning: type defaults to `int' in declaration of `log_string'
comm.c:1692: warning: parameter names (without types) in function declaration
comm.c:1692: conflicting types for `log_string'
merc.h:2884: previous declaration of `log_string'
comm.c:1692: warning: data definition has no type or storage class
comm.c:1693: parse error before string constant
comm.c:1704: warning: type defaults to `int' in declaration of `log_string'
comm.c:1704: warning: parameter names (without types) in function declaration
comm.c:1704: warning: data definition has no type or storage class
comm.c:1705: parse error before string constant
comm.c:1716: parse error before `->'
comm.c:1718: warning: type defaults to `int' in declaration of `write_to_descriptor'
comm.c:1718: conflicting types for `write_to_descriptor'
comm.c:356: previous declaration of `write_to_descriptor'
comm.c:1718: warning: data definition has no type or storage class
comm.c:1725: parse error before `->'
comm.c:1727: warning: type defaults to `int' in declaration of `write_to_descriptor'
comm.c:1727: warning: data definition has no type or storage class
comm.c:1728: parse error before `->'
comm.c:1728: warning: type defaults to `int' in declaration of `strcpy'
comm.c:1728: warning: data definition has no type or storage class
comm.c:1747: parse error before `->'
comm.c:2168: conflicting types for `write_to_descriptor'
comm.c:1727: previous declaration of `write_to_descriptor'
comm.c: In function `write_to_descriptor':
comm.c:2184: warning: implicit declaration of function `write'
make: *** [comm.o] Error 1
WHAT DOES THIS MEAN!?! And how do i fix it?
I'm new to coding.... can't you tell?
I'm using win98se Cygwin (newest version i could d/l)
gcc -c -O -g3 -Wall -Wuninitialized -p -DNOCRYPT -DROT comm.c
comm.c: In function `main':
comm.c:470: warning: implicit declaration of function `close'
comm.c: In function `read_from_descriptor':
comm.c:1548: warning: implicit declaration of function `read'
comm.c: In function `read_from_buffer':
comm.c:1646: parse error before `else'
comm.c:1587: warning: unused variable `j'
comm.c: At top level:
comm.c:1672: parse error before `if'
comm.c:1692: warning: type defaults to `int' in declaration of `log_string'
comm.c:1692: warning: parameter names (without types) in function declaration
comm.c:1692: conflicting types for `log_string'
merc.h:2884: previous declaration of `log_string'
comm.c:1692: warning: data definition has no type or storage class
comm.c:1693: parse error before string constant
comm.c:1704: warning: type defaults to `int' in declaration of `log_string'
comm.c:1704: warning: parameter names (without types) in function declaration
comm.c:1704: warning: data definition has no type or storage class
comm.c:1705: parse error before string constant
comm.c:1716: parse error before `->'
comm.c:1718: warning: type defaults to `int' in declaration of `write_to_descriptor'
comm.c:1718: conflicting types for `write_to_descriptor'
comm.c:356: previous declaration of `write_to_descriptor'
comm.c:1718: warning: data definition has no type or storage class
comm.c:1725: parse error before `->'
comm.c:1727: warning: type defaults to `int' in declaration of `write_to_descriptor'
comm.c:1727: warning: data definition has no type or storage class
comm.c:1728: parse error before `->'
comm.c:1728: warning: type defaults to `int' in declaration of `strcpy'
comm.c:1728: warning: data definition has no type or storage class
comm.c:1747: parse error before `->'
comm.c:2168: conflicting types for `write_to_descriptor'
comm.c:1727: previous declaration of `write_to_descriptor'
comm.c: In function `write_to_descriptor':
comm.c:2184: warning: implicit declaration of function `write'
make: *** [comm.o] Error 1
WHAT DOES THIS MEAN!?! And how do i fix it?
I'm new to coding.... can't you tell?
I'm using win98se Cygwin (newest version i could d/l)