Closed yuriy-kozlov closed 6 years ago
I think I misunderstood how swig modules work and in fact my Python modules did not work even though they did not give link-time errors. I put each module in a separate SO (mexfile) and that works better. I still think these functions should be marked internal though.
Yes, the modules need to be compiled as separate shared libraries.
I get theses errors when linking multiple modules produced with swig -matlab:
I think the problem is that these functions need to be declared with SWIGRUNTIME in the .swg files to keep them internal (static) to each module.
From http://www.swig.org/Doc3.0/Modules.html#Modules_nn2