Hello everyone
I'm facing a problem whilst trying to link my simple program against the pthread library
The command issue is the following:
/usr/bin/g++-10 -fdiagnostics-color=always -g /home/ulix/playground/game-programming/circle/circle.cpp -o /home/ulix/playground/game-programming/circle/circle -L/usr/local/lib -L/usr/lib -L/usr/lib/x86_64-linux-gnu -lsfml-graphics -lsfml-window -lsfml-system -lpthread
The error message is the following:
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `dlclose@GLIBC_2.34'
/usr/bin/ld: /usr/local/lib/libsfml-system.so: undefined reference to `pthread_mutexattr_init@GLIBC_2.34'
/usr/bin/ld: /usr/local/lib/libsfml-system.so: undefined reference to `pthread_key_create@GLIBC_2.34'
/usr/bin/ld: /usr/local/lib/libsfml-system.so: undefined reference to `pthread_setspecific@GLIBC_2.34'
/usr/bin/ld: /usr/local/lib/libsfml-system.so: undefined reference to `pthread_cancel@GLIBC_2.34'
/usr/bin/ld: /usr/local/lib/libsfml-system.so: undefined reference to `pthread_join@GLIBC_2.34'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `dlsym@GLIBC_2.34'
/usr/bin/ld: /usr/local/lib/libsfml-system.so: undefined reference to `pthread_getspecific@GLIBC_2.34'
/usr/bin/ld: /usr/local/lib/libsfml-graphics.so: undefined reference to
`std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
/usr/bin/ld: /usr/local/lib/libsfml-system.so: undefined reference to `pthread_key_delete@GLIBC_2.34'
/usr/bin/ld: /usr/local/lib/libsfml-window.so: undefined reference to `dlopen@GLIBC_2.34'
/usr/bin/ld: /usr/local/lib/libsfml-system.so: undefined reference to `pthread_mutexattr_settype@GLIBC_2.34'
/usr/bin/ld: /usr/local/lib/libsfml-system.so: undefined reference to `pthread_create@GLIBC_2.34'
I installed FSML version 2.6.1 and libc version 2.31-13+deb11u5 on an Ubuntu distro
Do I shall install a previous version of FSML or alternatively where can I find which libc version a given version of SFML supports?
Thank you