Anything I link to gtkglext using SWIG crashes Python on exit. Why does this crash?
test.i:
%module test
%{
void test() { printf("Test.\n"); }
%}
void test();
Session:
$ swig -python test.i
$ g++ -I/usr/include/python2.6 -shared -fPIC -o _test.so test_wrap.c -lpython2.6
$ python -c 'import test; test.test()'
Test.
$ g++ -I/usr/include/python2.6 -shared -fPIC -o _test.so test_wrap.c -lpython2.6 `pkg-config --libs gtkglext-1.0`
$ python -c 'import test; test.test()'
Test.
Segmentation fault
Any ideas? Thanks...