Re: Unknown reference when trying to access the wrapper DLL
Schala Zeal <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Well, I compiled a working Lua 5.1.4 -- stripped though, "strip -g --strip-unneeded" for the DLL. I have Boost 1.41 headers in the standard include directory under the subdirectory 'include/boost', Boost-Build V2 M12 present and the BOOST_ROOT set along with LUA_ROOT. BJam compiled it successfully with "bjam --toolset=gcc test" and I moved the headers to "include/luabind" and the static library (liblua.lib I believe) to my MinGW lib directory. Though, I had to rename liblua.a (the name the Lua library compiled to) to liblua5.1.a because I got errors before then about "-llua5.1" The examples I simply did "bjam --toolset=gcc" on, but those don't work. My own projects use "g++ -shared somesourcefile.o -o somelibrary.dll -lluabind -llua5.1" and deliver the same result. On Sat, Jan 2, 2010 at 5:51 AM, Kristoffer Danielsson < [email protected]> wrote: > Perhaps hello_world.dll is not present or maybe corrupt? > > ------------------------------ > Date: Fri, 1 Jan 2010 21:03:33 -0800 > From: [email protected] > To: [email protected] > Subject: [luabind] Unknown reference when trying to access the wrapper DLL > > > Hello, I've been having some troubles with Luabind on MinGW, trying to make > a test to see if it would work or not. Everything compiles okay... Well, > that is... it compiles, at least. Though when I try to use it in Lua 5.1, > the following occurs (this happens with provided examples as well) > > > package.loadlib("hello_world.dll", "init") -- for the record, "init")() > results in a "nil value" error > > greet() > stdin: attempt to call global 'greet' (a nil value) > ... etc > > This is the hello world example provided with Luabind 0.9 RC1. greet() is > defined to be in Lua's global namespace, so, I don't know what the heck > Lua's interpreter wants. An inputted script produces the same result. Please > help. Thank you. > > ------------------------------ > Skaffa en Windows phone så kan du chatta på Messenger var du än är! Skaffa > en Windows phone så kan du chatta på Messenger var du än är!<http://channels.se.msn.com/windowsphone/> > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > luabind-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/luabind-user > > ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ luabind-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luabind-user