编译netcf-1.7的source code时遇到的错误的解法

/home/swliao/compile/include/netlink/object.h:58: warning: inline function ‘nl_o
/home/swliao/compile/include/netlink/object.h:58: warning: inline function ‘nl_o
  CC     dutil_linux.lo
make[3]: *** No rule to make target `-L/home/swliao/compile/lib', needed by `lib
make[3]: Leaving directory `/home/swliao/source/netcf-0.1.7/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/swliao/source/netcf-0.1.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/swliao/source/netcf-0.1.7'
make: *** [all] Error 2

 

解决办法:进到netcf下的src目录,打开Makefile文件,注释掉:

#libnetcf_la_DEPENDENCIES = $(libnetcf_la_LIBADD) netcf.syms

就OK了...

你可能感兴趣的:(编译netcf-1.7的source code时遇到的错误的解法)