mardi 3 janvier 2023

Ws2tcpip.h not compiling

I'm making a bandwidth usage monitor using QT creator and every time I include Ws2tcpip.h I get a dozen of compilation errors like : error: redefinition of 'struct ip_mreq'

I only included the header file and still get many errors

#include "bandwidth_usage.h"
#include <windows.h>
#include <winsock2.h>
#include <Ws2tcpip.h>
Bandwidth_Usage::Bandwidth_Usage()
{

}

int Bandwidth_Usage :: get () {

}

Aucun commentaire:

Enregistrer un commentaire