I am using an API of communicating with remote server and it's only available in C
. I cannot rewrite it, because it's a very specific protocol, and it'll take too much effort.
The API providedIt uses standard Winsock2 scheme. So, in order to work with it I added
LIBS += C:\\QtSDK\\mingw\\lib\\libws2_32.a
to my project's .pro file.
However, when the program accesses any WinSock function, even WSAStartup
, it crashes immediately with the error message SIGILL -- Illegal Instruction
.
What am I doing wrong?