clang -O2 -Wall -Wextra -Werror=implicit-function-declaration mqueue/mq_receive.c -o mqueue/mq_receive -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lintl ../out/minix/basic/mqueue/mq_receive.o: In function `main': mqueue/mq_receive.c:(.text+0x4e3): undefined reference to `mq_open' mqueue/mq_receive.c:(.text+0x53b): undefined reference to `mq_send' mqueue/mq_receive.c:(.text+0x563): undefined reference to `mq_send' mqueue/mq_receive.c:(.text+0x58b): undefined reference to `mq_receive' mqueue/mq_receive.c:(.text+0x5b9): undefined reference to `mq_receive' mqueue/mq_receive.c:(.text+0x611): undefined reference to `mq_receive' mqueue/mq_receive.c:(.text+0x67e): undefined reference to `mq_setattr' mqueue/mq_receive.c:(.text+0x69e): undefined reference to `mq_receive' ../out/minix/basic/mqueue/mq_receive.o: In function `cleanup': mqueue/mq_receive.c:(.text+0x82b): undefined reference to `mq_unlink' ../out/minix/basic/mqueue/mq_receive.o: In function `on_signal': mqueue/mq_receive.c:(.text+0x93f): undefined reference to `mq_unlink' clang: error: linker command failed with exit code 1 (use -v to see invocation)