Open celikemir opened 1 month ago
When compiling the profiler with LEGACY=1 flag in ubuntu 20.04 I faced above error and solved adding the following line to the CMakeLists.txt
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
ERROR:
[100%] Linking CXX executable tracy-profiler /usr/bin/ld: /tmp/tracy-profiler.UvdhBJ.ltrans0.ltrans.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' /usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/tracy-profiler.dir/build.make:1162: tracy-profiler] Error 1 make[1]: *** [CMakeFiles/Makefile2:245: CMakeFiles/tracy-profiler.dir/all] Error 2 make: *** [Makefile:91: all] Error 2
When compiling the profiler with LEGACY=1 flag in ubuntu 20.04 I faced above error and solved adding the following line to the CMakeLists.txt
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
ERROR:
[100%] Linking CXX executable tracy-profiler /usr/bin/ld: /tmp/tracy-profiler.UvdhBJ.ltrans0.ltrans.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' /usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/tracy-profiler.dir/build.make:1162: tracy-profiler] Error 1 make[1]: *** [CMakeFiles/Makefile2:245: CMakeFiles/tracy-profiler.dir/all] Error 2 make: *** [Makefile:91: all] Error 2