If you really compile with gcc temp.c -o temp
then you are not linking any libraries (except the default libc.6.so
), and you need some additional argument to gcc
; perhaps try to compile with
gcc -Wall -g temp.c -lsctp -o temp
Once your program is debugged with the help of the gdb
debugger and you consider it to be bug-free, you may ask the compiler to optimize it using
gcc -Wall -O2 temp.c -lsctp -o temp
The order of program arguments to gcc
is important and significant.