Tuesday, July 26, 2022

[SOLVED] netinet/sctp.h: No such file or directory

Issue

I'm unable to include in any of my files. It always fails during compilation. I got the lksctp-tools package installed.

I run

     gcc -Wall -lsctp -o client admin.c deserializer.c input_parser.c main.c receive_response.c send_request.c serializer.c utils.c

And I get:

main.c:2:10: fatal error: netinet/sctp.h: No such file or directory
#include <netinet/sctp.h>
      ^~~~~~~~~~~~~~~~
compilation terminated.

I'm using Fedora, I don't know if that changes anything. However the project seems to work fine on CLion.


Solution

ok turns out I had to do the following:

yum install lksctp-tools-dev


Answered By - Flama
Answer Checked By - Pedro (WPSolving Volunteer)