SWIG crashes on AIX (with python, and probably everything else SWIG support)
问题 SWIG compiles and install easily on AIX. Unfortunately, a simple SWIG hello world (which also compiles - but not so easily) crashes with Segmentation Fault or Illegal Instruction (depending on some details of the compilation/linker process). This happens with both gcc and xlc (IBM c compiler). I tried only the native AIX linker ld, because the homonyms GNU ld was not installed on my system. File: example.c #include <time.h> double My_variable = 3.0; int fact(int n) { if (n <= 1) return 1;