|
From: | Giuseppe Modugno |
Subject: | Re: [lwip-devel] Building using MinGW |
Date: | Thu, 19 Dec 2019 11:14:22 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 |
Il 18/12/2019 11:42, Gisle Vanem ha scritto:
I have a project with lwip that compiles with mingw. I think you are using a different version of pcap libraries. I vaguely remember I couldn't be able to compile with an updated pcap library.Trying to build lwIP using TDM-gcc 5.1.0 (MinGW), now produces this error: In file included from f:/MingW32/src/inet/libpcap/pcap/pcap.h:74:0, from f:/MingW32/src/inet/libpcap/pcap.h:43, from contrib/ports/win32/pcapif.c:50:f:/MingW32/src/inet/libpcap/pcap/pcap-inttypes.h:48:6: error: #error "Building libpcaprequires VS 2015 or later" #error "Building libpcap requires VS 2015 or later" ^ The cause of this is the "define _MSC_VER 1500" in pcapif.c: /* e.g. mingw */ #define _MSC_VER 1500 #include "pcap.h" #undef _MSC_VER Bumping '_MSC_VER' to 1900 fixes this. But why are these lines needed?
Indeed I don't have pcap-inttypes.h at all and pcap/pcap.h doesn't have any reference to that file. I'm not using a globally installed pcap libraries, pcap includes and libraries are "installed" in the project folder. It seems I'm using Winpcap 4.1.2 (most probably this[*]).
[*] https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip
[Prev in Thread] | Current Thread | [Next in Thread] |