lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] Building using MinGW


From: Gisle Vanem
Subject: [lwip-devel] Building using MinGW
Date: Wed, 18 Dec 2019 11:42:17 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

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 libpcap
requires 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?

--
--gv



reply via email to

[Prev in Thread] Current Thread [Next in Thread]