clang -O2 -Wall -Wextra -Werror=implicit-function-declaration mqueue/mq_timedreceive.c -o mqueue/mq_timedreceive -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lintl ../out/minix/basic/mqueue/mq_timedreceive.o: In function `main': mqueue/mq_timedreceive.c:(.text+0x4e3): undefined reference to `mq_open' mqueue/mq_timedreceive.c:(.text+0x53b): undefined reference to `mq_send' mqueue/mq_timedreceive.c:(.text+0x57b): undefined reference to `__mq_timedreceive50' mqueue/mq_timedreceive.c:(.text+0x5eb): undefined reference to `__mq_timedreceive50' mqueue/mq_timedreceive.c:(.text+0x629): undefined reference to `__mq_timedreceive50' mqueue/mq_timedreceive.c:(.text+0x667): undefined reference to `__mq_timedreceive50' ../out/minix/basic/mqueue/mq_timedreceive.o: In function `cleanup': mqueue/mq_timedreceive.c:(.text+0x7cb): undefined reference to `mq_unlink' ../out/minix/basic/mqueue/mq_timedreceive.o: In function `on_signal': mqueue/mq_timedreceive.c:(.text+0x8df): undefined reference to `mq_unlink' clang: error: linker command failed with exit code 1 (use -v to see invocation)