Closed 142857X1 closed 1 year ago
之前一直挺顺利的,最近编译的时候出错了,是哪个编译器版本出现问题了么? Run Build Command:"/usr/bin/make" "cmTC_56bc5/fast" /usr/bin/make -f CMakeFiles/cmTC_56bc5.dir/build.make CMakeFiles/cmTC_56bc5.dir/build make[1]: Entering directory '/root/trojan-plus/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_56bc5.dir/CheckSymbolExists.c.o /usr/bin/cc -o CMakeFiles/cmTC_56bc5.dir/CheckSymbolExists.c.o -c /root/trojan-plus/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_56bc5 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_56bc5.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTC_56bc5.dir/CheckSymbolExists.c.o -o cmTC_56bc5 CMakeFiles/cmTC_56bc5.dir/CheckSymbolExists.c.o: In function main': CheckSymbolExists.c:(.text+0x1b): undefined reference topthread_create' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_56bc5.dir/build.make:97: recipe for target 'cmTC_56bc5' failed make[1]: [cmTC_56bc5] Error 1 make[1]: Leaving directory '/root/trojan-plus/build/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_56bc5/fast' failed make: [cmTC_56bc5/fast] Error 2
main': CheckSymbolExists.c:(.text+0x1b): undefined reference to
File /root/trojan-plus/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: / /
int main(int argc, char** argv) { (void)argv;
return ((int*)(&pthread_create))[argc];
(void)argc; return 0;
}
CheckSymbolExists.c is not source file of trojan-plus, please delete the build folder to compile again: rm -rf /root/trojan-plus/build
rm -rf /root/trojan-plus/build
更换乌班图20.04好了
ok, I am going to close this issue now.
之前一直挺顺利的,最近编译的时候出错了,是哪个编译器版本出现问题了么? Run Build Command:"/usr/bin/make" "cmTC_56bc5/fast" /usr/bin/make -f CMakeFiles/cmTC_56bc5.dir/build.make CMakeFiles/cmTC_56bc5.dir/build make[1]: Entering directory '/root/trojan-plus/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_56bc5.dir/CheckSymbolExists.c.o /usr/bin/cc -o CMakeFiles/cmTC_56bc5.dir/CheckSymbolExists.c.o -c /root/trojan-plus/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_56bc5 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_56bc5.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTC_56bc5.dir/CheckSymbolExists.c.o -o cmTC_56bc5 CMakeFiles/cmTC_56bc5.dir/CheckSymbolExists.c.o: In function
main': CheckSymbolExists.c:(.text+0x1b): undefined reference to
pthread_create' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_56bc5.dir/build.make:97: recipe for target 'cmTC_56bc5' failed make[1]: [cmTC_56bc5] Error 1 make[1]: Leaving directory '/root/trojan-plus/build/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_56bc5/fast' failed make: [cmTC_56bc5/fast] Error 2File /root/trojan-plus/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: / /
include
int main(int argc, char** argv) { (void)argv;
ifndef pthread_create
return ((int*)(&pthread_create))[argc];
else
(void)argc; return 0;
endif
}