まず、Ubuntu 12.04
sudo apt-get install libsctp-dev lksctp-tools に
sctp をインストールします
。次に、.c ファイルに以下を含めます。
#include < netinet/in.h >
#include < netinet/sctp.h >
#include < sys/socket.h >
#include < stdlib.h >
#include < unistd.h >
ただし、gccでコンパイルすると、結果は次のようになります。
undefined reference to `sctp_recvmsg'
undefined reference to `sctp_get_no_strms'
undefined reference to `sctp_sendmsg'
なにが問題ですか?