[C++-sig] Boost.Python std::cerr segfault when built with -lGL

Stefan Seefeld seefeld at sympatico.ca
Sat May 26 01:31:51 CEST 2007


Gazihan Alankus wrote:
> Hello, 
> 
> I'm using Boost.Python to create a python library. When I use -lGL in my
> linker flags, the first string I send to std::cerr results in an exception.
> When I leave -lGL out, everything is fine and std::cerr works with no
> problems. I get this problem when I add -lGL to the simplest Boost.Python
> sample program that has nothing to do with OpenGL. Any ideas? Does anybody
> else see this behavior? 
> 
> I'm on Gentoo Linux, using gcc 4.1.1, Python 2.4 and Boost 1.33. I tried
> Python 2.3 too and it's the same. 

(Is this 'GL' name specific to Gentoo ? On my distribution I would name it 'gl',
 i.e. all minor case.)

Have you tried reducing your test case to the point where boost.python isn't
part of the setup any more ? It doesn't sound as if your problem is related to
neither Python nor boost, in any case.

Regards,
		Stefan


-- 

      ...ich hab' noch einen Koffer in Berlin...



More information about the Cplusplus-sig mailing list