新人没有移植经验,按照网上说的在电脑上编译安装好libnet
#cd libnet-1.1.5
#./configure CC=arm-linux-gcc --host=arm-linux prefix=/usr/local/arm/4.3.2/
#make
#make install
然后arm-linux-gcc test.c -o test -L /usr/local/arm/4.4.3/lib编译一个测试程序出现下面错误
/tmp/cchtAhU6.o: In function `main':
test.c:(.text+0x120): undefined reference to `libnet_init'
test.c:(.text+0x1a4): undefined reference to `libnet_build_ethernet'
test.c:(.text+0x1ac): undefined reference to `libnet_write'
collect2: ld returned 1 exit status
要怎么解决 希望有人能帮帮我 急用
