fix import error, please update Makefile
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6463 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b953de63be
commit
b9832ab0f0
5 changed files with 17 additions and 7 deletions
|
|
@ -3,15 +3,17 @@ SWIG = $(TOP)/../preinst-swig
|
|||
SWIGOPT =
|
||||
LIBS =
|
||||
|
||||
all::
|
||||
all::
|
||||
$(CXX) -shared -o cbase.so cbase.cxx
|
||||
$(CXX) -shared -o cbar.so cbar.cxx
|
||||
$(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \
|
||||
LIBS='$(LIBS)' TARGET='base' INTERFACE='base.i' python_cpp
|
||||
LIBS='$(LIBS) cbase.so' TARGET='base' INTERFACE='base.i' python_cpp
|
||||
$(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \
|
||||
LIBS='$(LIBS)' TARGET='foo' INTERFACE='foo.i' python_cpp
|
||||
LIBS='$(LIBS) cbase.so' TARGET='foo' INTERFACE='foo.i' python_cpp
|
||||
$(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \
|
||||
LIBS='$(LIBS)' TARGET='bar' INTERFACE='bar.i' python_cpp
|
||||
LIBS='$(LIBS) cbase.so cbar.so' TARGET='bar' INTERFACE='bar.i' python_cpp
|
||||
$(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \
|
||||
LIBS='$(LIBS)' TARGET='spam' INTERFACE='spam.i' python_cpp
|
||||
LIBS='$(LIBS) cbase.so cbar.so' TARGET='spam' INTERFACE='spam.i' python_cpp
|
||||
|
||||
|
||||
clean::
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
class Bar : public Base {
|
||||
public:
|
||||
Bar() { }
|
||||
~Bar() { }
|
||||
~Bar();
|
||||
virtual void A() {
|
||||
printf("I'm Bar::A\n");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
class Base {
|
||||
public:
|
||||
Base() { };
|
||||
virtual ~Base() { };
|
||||
virtual ~Base();
|
||||
virtual void A() {
|
||||
printf("I'm Base::A\n");
|
||||
}
|
||||
|
|
|
|||
5
Examples/python/import/cbar.cxx
Normal file
5
Examples/python/import/cbar.cxx
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#include "bar.h"
|
||||
|
||||
Bar::~Bar()
|
||||
{
|
||||
}
|
||||
3
Examples/python/import/cbase.cxx
Normal file
3
Examples/python/import/cbase.cxx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#include "base.h"
|
||||
|
||||
Base::~Base() { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue