I write a demo with libnet, but get an error when call the function:
libnet_error(LIBNET_ERR_FATAL, "libnet_open_link_interface: %s\n", errbuf);
The error is "error: ‘LIBNET_ERR_FATAL’ undeclared (first use in this function)".
my gcc command is: "gcc demo.c libnet-config --defines --cflags --libs
", and run on ubuntu.
I want to know who got the same error before ?