cygwin -qt 编译相关

libevent 中 event-config.h  
//#define _EVENT_HAVE_NETDB_H 0
//#define _EVENT_HAVE_SYS_TIME_H 1

DEFINES += GLOG_NO_ABBREVIATED_SERVERITIES
DEFINES += WIN32
DEFINES += _WIN32
DEFINES += WIN32_LEAN_AND_MEAN
DEFINES += __USE_W32_SOCKETS # for unistd.h conflict

 
  
 
  
--------------------------------------------------
丑陋的cygwin:
In file included from /usr/include/w32api/rpcndr.h:21:0,
                 from /usr/include/w32api/naptypes.h:8,
                 from /usr/include/w32api/ras.h:17,
                 from /usr/include/w32api/mprapi.h:10,
                 from /usr/include/w32api/iprtrmib.h:9,
                 from /usr/include/w32api/iphlpapi.h:17,
                 from discover_upnp_event.c:29:
/usr/include/w32api/rpcnsip.h:14:5: 错误:未知的类型名‘RPC_NS_HANDLE’
     RPC_NS_HANDLE LookupContext;
     ^
/usr/include/w32api/rpcnsip.h:15:5: 错误:未知的类型名‘RPC_BINDING_HANDLE’
     RPC_BINDING_HANDLE ProposedHandle;
     ^
/usr/include/w32api/rpcnsip.h:16:5: 错误:未知的类型名‘RPC_BINDING_VECTOR’
 
  
暴力解决办法: C:\cygwin\usr\include\w32api目录下的iprtrmib.h文件中的第九行 //#include 屏蔽掉,并增加宏#define MAX_INTERFACE_NAME_LEN 256
顿时,全世界都安静了!!
 
 

你可能感兴趣的:(cygwin -qt 编译相关)