I’m having problems when I link any SDL-based program with g++ instead
of gcc (which means the problem really occurs due to linking with
libstdc++): During the call to SDL_Init, I get a SEGV inside
__mutex_lock_pthread down a few levels within the call to
XOpenDisplay(). This makes no sense to me, since I’ve had no trouble
creating plain XLib programs with g++ on the same system.
This is on a Redhat5.2 system with kernel upgraded to 2.2.13 and Xfree
3.3.5. I reinstalled the latest RH5.2 libstdc++ and libg++ libraries
last night, but that had no effect. I’ll probably just upgrade to Suse
6.3 (as I’ve had no problems on my machine at work running Suse), but
it’s still really bothering me that I cannot figure this problem out.