Linux netinet/sctp.h:没有这样的文件或目录
我无法将其包含在我的任何文件中。它在编译过程中总是失败。 我安装了lksctp工具包 我跑Linux netinet/sctp.h:没有这样的文件或目录,linux,gcc,sctp,Linux,Gcc,Sctp,我无法将其包含在我的任何文件中。它在编译过程中总是失败。 我安装了lksctp工具包 我跑 gcc -Wall -lsctp -o client admin.c deserializer.c input_parser.c main.c receive_response.c send_request.c serializer.c utils.c 我得到: main.c:2:10: fatal error: netinet/sctp.h: No such file or director
gcc -Wall -lsctp -o client admin.c deserializer.c input_parser.c main.c receive_response.c send_request.c serializer.c utils.c
我得到:
main.c:2:10: fatal error: netinet/sctp.h: No such file or directory
#include <netinet/sctp.h>
^~~~~~~~~~~~~~~~
compilation terminated.
main.c:2:10:致命错误:netinet/sctp.h:没有这样的文件或目录
#包括
^~~~~~~~~~~~~~~~
编译终止。
我用的是软呢帽,我不知道这会不会改变什么。
然而,该项目似乎在CLion上运行良好 好吧,结果我不得不做以下事情:
yum install lksctp-tools-dev
好吧,结果我不得不做以下事情:
yum install lksctp-tools-dev
在ubuntu上需要安装
libsctp dev
sudo apt install libsctp-dev
在ubuntu上需要安装
libsctp dev
sudo apt install libsctp-dev