Davidoff7776
Davidoff7776

Reputation: 23

libnet.h no such file or directory

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.

Upvotes: 1

Views: 4541

Answers (1)

contrapants
contrapants

Reputation: 793

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.

Upvotes: 2

Related Questions