Update of /cvsroot/luabind/luabind/luabind/examples/hello_world
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15879/luabind/examples/hello_world
Modified Files:
Jamfile hello_world.cpp
Added Files:
README
Log Message:
merged in changes from beta7-devel2 (tag: beta7-devel2-merge)
--- NEW FILE: README ---
this example will build an extension module as a shared library, use
loadlib() from within the lua interpreter to load the library, it will
then export a function named greet() which you can call.
> loadlib('hello_world.dll', 'init')()
> greet()
Hello world!
>
Index: hello_world.cpp
===================================================================
RCS file: /cvsroot/luabind/luabind/luabind/examples/hello_world/hello_world.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- hello_world.cpp 25 Feb 2004 20:32:08 -0000 1.1
+++ hello_world.cpp 28 Nov 2005 20:55:34 -0000 1.2
@@ -1,4 +1,4 @@
-// Copyright (c) 2004 Daniel Wallin
+// Copyright (c) 2005 Daniel Wallin and Arvid Norberg
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
@@ -20,6 +20,13 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
// OR OTHER DEALINGS IN THE SOFTWARE.
+extern "C"
+{
+ #include "lua.h"
+ #include "lualib.h"
+ #include "lauxlib.h"
+}
+
#include <iostream>
#include <luabind/luabind.hpp>
Index: Jamfile
===================================================================
RCS file: /cvsroot/luabind/luabind/luabind/examples/hello_world/Jamfile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Jamfile 25 Feb 2004 20:32:08 -0000 1.1
+++ Jamfile 28 Nov 2005 20:55:34 -0000 1.2
@@ -5,5 +5,5 @@
lib hello_world
: hello_world.cpp /luabind//luabind/<link>static /luabind//lua ;
-stage bin : hello_world ;
+stage . : hello_world ;
|