clang -O2 -Wall -Wextra -Werror=implicit-function-declaration mqueue/mq_timedsend.c -o mqueue/mq_timedsend -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lintl ../out/minix/basic/mqueue/mq_timedsend.o: In function `main': mqueue/mq_timedsend.c:(.text+0x4e3): undefined reference to `mq_open' mqueue/mq_timedsend.c:(.text+0x553): undefined reference to `__mq_timedsend50' mqueue/mq_timedsend.c:(.text+0x58f): undefined reference to `__mq_timedsend50' mqueue/mq_timedsend.c:(.text+0x5d1): undefined reference to `__mq_timedsend50' mqueue/mq_timedsend.c:(.text+0x613): undefined reference to `__mq_timedsend50' ../out/minix/basic/mqueue/mq_timedsend.o: In function `cleanup': mqueue/mq_timedsend.c:(.text+0x73b): undefined reference to `mq_unlink' ../out/minix/basic/mqueue/mq_timedsend.o: In function `on_signal': mqueue/mq_timedsend.c:(.text+0x84f): undefined reference to `mq_unlink' clang: error: linker command failed with exit code 1 (use -v to see invocation)