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:
Marcelo Matus 2004-10-21 10:04:16 +00:00
commit b9832ab0f0
5 changed files with 17 additions and 7 deletions

View file

@ -3,15 +3,17 @@ SWIG = $(TOP)/../preinst-swig
SWIGOPT = SWIGOPT =
LIBS = 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)' \ $(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)' \ $(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)' \ $(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)' \ $(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:: clean::

View file

@ -3,7 +3,7 @@
class Bar : public Base { class Bar : public Base {
public: public:
Bar() { } Bar() { }
~Bar() { } ~Bar();
virtual void A() { virtual void A() {
printf("I'm Bar::A\n"); printf("I'm Bar::A\n");
} }

View file

@ -3,7 +3,7 @@
class Base { class Base {
public: public:
Base() { }; Base() { };
virtual ~Base() { }; virtual ~Base();
virtual void A() { virtual void A() {
printf("I'm Base::A\n"); printf("I'm Base::A\n");
} }

View file

@ -0,0 +1,5 @@
#include "bar.h"
Bar::~Bar()
{
}

View file

@ -0,0 +1,3 @@
#include "base.h"
Base::~Base() { }