I am creating an irc bot and using cpIRC as a wrapper. Everything works on linux, but when compiling on windows and linking to ws2_32.lib the program spits out "Failed to open streams!";
Here is the code from the wrapper responsible for the error:
1 2 3 4 5 6 7 8 9
dataout=fdopen(irc_socket, "w");
//datain=fdopen(irc_socket, "r");
if (!dataout /*|| !datain*/)
{
printf("Failed to open streams!\n");
closesocket(irc_socket);
return 1;
}