You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swig -Wall -python -c++ .\import_nomodule.i
.\import_nomodule.i(37) : Warning 401: Base class 'Foo' ignored - unknown module name for base. Either import the appropriate module interface file or specify the name of the module in the %import directive.
Looks like it is testing partially provided type information. This is something that SWIG does support (unlike a C++ compiler). In this case, the %import provides the appropriate type information in order for the runtime system to work fairly well. That is, the test1 function:
void test1(Foo*, Integer);
will accept a Bar * (Bar is derived from Foo) even though there are no proxy classes generated for this class hierarchy. This works in the scripting languages that support the SWIG runtime system, but cannot work for the statically typed languages (like Java) because there is no SWIG runtime system in these languages. Whether or not this test should be supported for MATLAB does of course depend on whether or not MATLAB has implemented the SWIG runtime system.
The text was updated successfully, but these errors were encountered:
@wsfulton answered on the mailing list
The text was updated successfully, but these errors were encountered: