/* * Works when you compile it like this: * gcc -o xthread xthread.c `pkg-config --cflags --libs gtk+-2.0` * * but not like this: * gcc -o xthread xthread.c `pkg-config --cflags --libs gtk+-2.0 gthread-2.0` */ #include #include #include int main( void ) { XInitThreads(); gtk_init( NULL, NULL ); printf( "Yay. We didn't block!\n" ); return 0; }