Answer the question
In order to leave comments, you need to log in
How to fix error with mingw msys and winsock2?
When compiling a project, mingw throws an error in the standard winsock2.h header:
https://pastebin.com/E6ciRt80
(log too big, uploaded to pastebin)
Project code lines referenced by the compiler:
lib.h
#ifndef _LIB_H
#define _LIB_H
#include <winsock2.h>
#include <windows.h>
#undef _WIN32_WINNT
#define _WIN32_WINNT _WIN32_WINNT_WS08
#include <ws2tcpip.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/ssl.h>
#include <openssl/crypto.h>
#include "lib.h"
#include "utils.h"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question