我用libnet编写了一个演示,但是在调用函数时出错:
libnet_error(LIBNET_ERR_FATAL, "libnet_open_link_interface: %s\n", errbuf);
错误是“error:”libnet_err_fatal“undeclared(first use in this function)”。
我的gcc命令是:“gcc demo.c
libnet-config --defines --cflags --libs
”,并在ubuntu上运行。我想知道谁以前也犯过同样的错误?
最佳答案
是版本问题,libnet_err_fatal已在1.1中删除!
关于c - 错误:libnet出现“LIBNET_ERR_FATAL”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3789014/