That is most weird, WSAStartup is called from within the cNetworkSingleton constructor, so it should have been called, and I have no idea if it could even fail nowadays.
Anyway, I've added failure logging.
Maybe I did something wrong when compiling. I did have some trouble with cmake. It said that it didn't know the argument -DSELF_TEST
errormessage:
Code:
Parse error in command line argument: -DSELF_TEST
Should be: VAR:type=value
CMake Error: No cmake script provided.
CMake Error: Problem processing arguments. Aborting.
so I removed the "if(${SELF_TEST})" lines so that it would always make a self test solution file.
I know, but then it says that the parameter doesn't exist.
I just remembered how I fixed it last time. The problem is that I didn't install cmake in a way that it's available in the command prompt, but because I was too lazy to re-install it I created a batch file that calls cmake with the given parameters and put it in system32. cmake doesn't seem to like that.
As already said, you're missing the "=1" at the end of the commandline, that's what the error message is saying.
Do reinstall your cmake properly and then re-configure If you're reconfiguring an existing folder, remember to remove the CMakeCache.txt file before that.
I just tried that, and it worked perfectly, but now Visual Studio says winsock2.h doesn't exist. This is probably because I deïnstalled some older versions of Visual c++ and the 2015 preview. I'm reïnstalling VS 2013 now.