tags:

views:

14

answers:

1

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 ?

A: 

It's the version problem, LIBNET_ERR_FATAL have been removed in 1.1!

why