This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
/home/chen/ti/thread-ex.c:1:20: warning: extra tokens at end of #include directive [enabled by default]
#include <unistd.h>;
^
/home/chen/ti/thread-ex.c:2:23: warning: extra tokens at end of #include directive [enabled by default]
#include <sys/types.h>;
^
/home/chen/ti/thread-ex.c:3:19: warning: extra tokens at end of #include directive [enabled by default]
#include <errno.h>;
^
/home/chen/ti/thread-ex.c:4:19: warning: extra tokens at end of #include directive [enabled by default]
#include <stdio.h>;
^
/home/chen/ti/thread-ex.c:5:20: warning: extra tokens at end of #include directive [enabled by default]
#include <stdlib.h>;
^
/home/chen/ti/thread-ex.c:6:21: warning: extra tokens at end of #include directive [enabled by default]
#include <pthread.h>;
^
/home/chen/ti/thread-ex.c:7:20: warning: extra tokens at end of #include directive [enabled by default]
#include <string.h>;
^
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: cannot open output file home/chen/ti/thread-ex: No such file or directory
collect2: error: ld returned 1 exit status
这个对编译其它文件有什么影响吗?
/opt/ti-processor-sdk-linux-rt-am335x-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc /home/chen/ti/thread-ex.c -o home/chen/ti/thread-ex
/tmp/ccRVYqku.o: In function `main':
thread-ex.c:(.text+0x52): undefined reference to `pthread_create'
thread-ex.c:(.text+0x68): undefined reference to `pthread_create'
thread-ex.c:(.text+0x74): undefined reference to `pthread_join'
thread-ex.c:(.text+0x80): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status