Cannot call XInitThreads
问题 I have written an SFML C++ game, and tried to start using threads, but after a while everything crashes. After searching I found out the fix seems to be to call XInitThreads(); but this does not work somehow. simplified code: #include <X11/Xlib.h> int main() { XInitThreads(); //other stuff return 1337; } The error message I get when i try to compile is "undefined reference to symbol 'XInitThreads'. Could it be that the header file is working but there is no file where that method is