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