我无法包含在我的任何文件中。编译的时候总是失败。我安装了 lksctp-tools 软件包。
我跑
gcc -Wall -lsctp -o client admin.c deserializer.c input_parser.c main.c receive_response.c send_request.c serializer.c utils.c
Run Code Online (Sandbox Code Playgroud)
我得到:
main.c:2:10: fatal error: netinet/sctp.h: No such file or directory
#include <netinet/sctp.h>
^~~~~~~~~~~~~~~~
compilation terminated.
Run Code Online (Sandbox Code Playgroud)
我正在使用 Fedora,我不知道这是否会改变什么。然而该项目似乎在 CLion 上运行良好。
ras*_*hok 14
在ubuntu上需要安装libsctp-dev.
sudo apt install libsctp-dev
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
18577 次 |
| 最近记录: |