I have now been looking at getting this up and running on a windows machine using Cygwin. I've got all the dependencies installed but I encounter a strange error with cURL as seen below that I can't seem to fix.
In file included from /usr/include/curl/curl.h:2547:0,
from main.cpp:29:
/usr/include/curl/multi.h:155:40: error: ‘fd_set’ has not been declared
fd_set read_fd_set,
^~
/usr/include/curl/multi.h:156:40: error: ‘fd_set’ has not been declared
fd_set write_fd_set,
^~
/usr/include/curl/multi.h:157:40: error: ‘fd_set’ has not been declared
fd_set *exc_fd_set,
^~
main.cpp: In function ‘int main(int, char)’:
main.cpp:1824:26: error: aggregate ‘main(int, char)::sigaction sig_int_handle ’ has incomplete type and cannot be defined
struct sigaction sig_int_handler;
^~~~~~~
main.cpp:1827:47: error: ‘sigemptyset’ was not declared in this scope
sigemptyset( &sig_int_handler.sa_mask );
^
main.cpp:1829:51: error: invalid use of incomplete type ‘struct main(int, char)::sigaction’
sigaction( SIGINT, &sig_int_handler, NULL );
^
main.cpp:1824:16: note: forward declaration of ‘struct main(int, char)::sigaction’
struct sigaction sig_int_handler;
^~~~~
make: *** [Makefile:3: all] Error 1
(I left it out of the code tag as the format is then horrible to read)
I have now been looking at getting this up and running on a windows machine using Cygwin. I've got all the dependencies installed but I encounter a strange error with cURL as seen below that I can't seem to fix.
In file included from /usr/include/curl/curl.h:2547:0, from main.cpp:29: /usr/include/curl/multi.h:155:40: error: ‘fd_set’ has not been declared fd_set read_fd_set, ^
~/usr/include/curl/multi.h:156:40: error: ‘fd_set’ has not been declared fd_set write_fd_set, ^~/usr/include/curl/multi.h:157:40: error: ‘fd_set’ has not been declared fd_set *exc_fd_set, ^~main.cpp: In function ‘int main(int, char)’: main.cpp:1824:26: error: aggregate ‘main(int, char)::sigaction sig_int_handle ’ has incomplete type and cannot be defined struct sigaction sig_int_handler; ^~~~~~~ main.cpp:1827:47: error: ‘sigemptyset’ was not declared in this scope sigemptyset( &sig_int_handler.sa_mask ); ^ main.cpp:1829:51: error: invalid use of incomplete type ‘struct main(int, char)::sigaction’ sigaction( SIGINT, &sig_int_handler, NULL ); ^ main.cpp:1824:16: note: forward declaration of ‘struct main(int, char)::sigaction’ struct sigaction sig_int_handler; ^~~~~ make: *** [Makefile:3: all] Error 1(I left it out of the code tag as the format is then horrible to read)