Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

netinet/sctp.h: No such file or directory

Tags:

linux

gcc

sctp

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.

like image 424
Flama Avatar asked Nov 25 '25 23:11

Flama


1 Answers

On ubuntu need to install libsctp-dev.

sudo apt install libsctp-dev
like image 163
rashok Avatar answered Nov 28 '25 15:11

rashok



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!