Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' #795

Open
celikemir opened this issue May 21, 2024 · 0 comments
Open

undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' #795

celikemir opened this issue May 21, 2024 · 0 comments

Comments

@celikemir
Copy link

celikemir commented May 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant