i am trying to make and compile libnodave but i get huge list of warnings and errors. at the moment i am stuck at:
$ make && make install
gcc -O0 -Wall -Winline -DCYGWIN -DHANDMADE_CONVERSIONS -c -o openSocket.o openSocket.c
openSocket.c:39:17: sys.h: No such file or directory
openSocket.c: In function `openSocket':
openSocket.c:45: error: storage size of `addr' isn't known
openSocket.c:46: error: `socklen_t' undeclared (first use in this function)
openSocket.c:46: error: (Each undeclared identifier is reported only once
openSocket.c:46: error: for each function it appears in.)
openSocket.c:46: error: parse error before "addrlen"
openSocket.c:54: error: `AF_INET' undeclared (first use in this function)
openSocket.c:64: warning: implicit declaration of function `socket'
openSocket.c:64: error: `SOCK_STREAM' undeclared (first use in this function)
openSocket.c:72: error: `addrlen' undeclared (first use in this function)
openSocket.c:73: warning: implicit declaration of function `connect'
openSocket.c:45: warning: unused variable `addr'
make: *** [openSocket.o] Error 1
i have almost none experience with linux, but i want to try it, because this code can help me with writing programs for my s7-200 cpu 222.
thanx
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i am trying to make and compile libnodave but i get huge list of warnings and errors. at the moment i am stuck at:
$ make && make install
gcc -O0 -Wall -Winline -DCYGWIN -DHANDMADE_CONVERSIONS -c -o openSocket.o openSocket.c
openSocket.c:39:17: sys.h: No such file or directory
openSocket.c: In function `openSocket':
openSocket.c:45: error: storage size of `addr' isn't known
openSocket.c:46: error: `socklen_t' undeclared (first use in this function)
openSocket.c:46: error: (Each undeclared identifier is reported only once
openSocket.c:46: error: for each function it appears in.)
openSocket.c:46: error: parse error before "addrlen"
openSocket.c:54: error: `AF_INET' undeclared (first use in this function)
openSocket.c:64: warning: implicit declaration of function `socket'
openSocket.c:64: error: `SOCK_STREAM' undeclared (first use in this function)
openSocket.c:72: error: `addrlen' undeclared (first use in this function)
openSocket.c:73: warning: implicit declaration of function `connect'
openSocket.c:45: warning: unused variable `addr'
make: *** [openSocket.o] Error 1
i have almost none experience with linux, but i want to try it, because this code can help me with writing programs for my s7-200 cpu 222.
thanx
Paul