clang -O2 -Wall -Wextra -Werror=implicit-function-declaration mqueue/mq_notify.c -o mqueue/mq_notify -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lintl ../out/minix/basic/mqueue/mq_notify.o: In function `main': mqueue/mq_notify.c:(.text+0x513): undefined reference to `mq_open' mqueue/mq_notify.c:(.text+0x62b): undefined reference to `mq_notify' mqueue/mq_notify.c:(.text+0x66b): undefined reference to `mq_notify' mqueue/mq_notify.c:(.text+0x6a1): undefined reference to `mq_send' mqueue/mq_notify.c:(.text+0x6d9): undefined reference to `mq_notify' mqueue/mq_notify.c:(.text+0x6f1): undefined reference to `mq_notify' ../out/minix/basic/mqueue/mq_notify.o: In function `cleanup': mqueue/mq_notify.c:(.text+0x81b): undefined reference to `mq_unlink' ../out/minix/basic/mqueue/mq_notify.o: In function `on_signal': mqueue/mq_notify.c:(.text+0x92f): undefined reference to `mq_unlink' clang: error: linker command failed with exit code 1 (use -v to see invocation)