As I don't have enough reputation to comment (I can only answer), I'llOn 08/18/2014 06:49 PM, brainstorm wrote:
> Sorry for the cross-posting, but I wonder if any of you have a good
> solution for this problem I'm experiencing with SWIG and Python on OSX:
> Thanks in advance!
answer by email.
First of all, I see your interface file is empty, except for the %module
directive. That shouldn't generate segfault AFAIK, but I'd put something
Second, I hope you'll be entering some body for the main in the .c file.
If Python is stupid enough to start running code in main(); - which it
probably isn't, but you never know - it'll segfault indeed.
So, put something in that interface file, add it to the .c file and post