Visual C++ 8 warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9a74c3a918
commit
df83cef573
6 changed files with 15 additions and 6 deletions
|
|
@ -5,8 +5,8 @@ CXXSRCS = example2_wrap.cxx
|
|||
INTERFACE = dual.i
|
||||
LUA_INTERP = dual.cpp
|
||||
|
||||
# this is a little different ot normal as we need to static link two modules and a custom intepreter
|
||||
# we need the external runtime, then swig examples2, and build the module as normal
|
||||
# This is a little different to normal as we need to static link two modules and a custom interpreter
|
||||
# We need the external runtime, then swig examples2, and build the module as normal
|
||||
all::
|
||||
$(SWIG) -lua -external-runtime
|
||||
$(SWIG) -c++ -lua $(SWIGOPT) example2.i
|
||||
|
|
@ -15,6 +15,7 @@ all::
|
|||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile lua_clean
|
||||
rm -f swigluarun.h
|
||||
|
||||
check: all
|
||||
|
||||
|
|
|
|||
|
|
@ -23,11 +23,11 @@ the two modules are now linked together, and all can now find
|
|||
both Foo and Bar.
|
||||
*/
|
||||
|
||||
#include "swigluarun.h" // the swig runtimes
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "swigluarun.h" // the swig runtimes
|
||||
|
||||
// the 2 libraries which are wrappered via SWIG
|
||||
extern "C" int luaopen_example(lua_State*L);
|
||||
extern "C" int luaopen_example2(lua_State*L);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue