So, I'm trying to compile my C code using the command "gcc -o file file.c", but I get "error: libnet.h: No such file or directory" I included libnet.h (#include ) and I also installed libnet. I'm running CentOS 7.
yum install libnet
only installs the precompiled library.
You need to install the headers using yum install libnet-devel
before you can use it in your own software.