2012年12月4日 星期二

libnl-1.1 編譯

請在 Y:\tmp\libnl-1.1\include\netlink-local 加入

#include <limits.h>

不然會有下面錯誤

In file included from addr.c:28:0:
../include/netlink-local.h: In function ‘__str2type’:
../include/netlink-local.h:218:11: error: ‘ULONG_MAX’ undeclared (first use in this function)
../include/netlink-local.h:218:11: note: each undeclared identifier is reported only once for each function it appears in
../include/netlink-local.h: In function ‘__list_str2type’:
../include/netlink-local.h:239:11: error: ‘ULONG_MAX’ undeclared (first use in this function)
make[2]: *** [addr.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

沒有留言:

張貼留言