shogun-toolbox/shogun — pull request #602 by pluskid (2012-06-26 12:07:30+00:00)
Title: fix SO modular compile segfault.

SWIG is seg-faulting in my local box (SWIG 2.0.7 on Arch Linux). After some struggling, I fixed the problem by adding the header files.

Though this fixed the problem, I still have some wondering about SWIG preprocessor. It seems it doesn't process 2nd level header fine include. I.e. when I include a header file A.h in SWIG, and A.h includes yet another B.h, it seems that SWIG doesn't process B.h by default. We have to manually include B.h. AND it seems to make things correct, we even need to make sure we manually include B.h *BEFORE* A.h is included in SWIG. I have encountered similar strange problems related to this before, but this is the first time to get SWIG segfault yet.

I'm wondering is this a feature or a bug of SWIG?