Re: Unknown reference when trying to access the wrapper DLL

Kristoffer Danielsson <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
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. 		 	   		  
_________________________________________________________________
Hitta kärleken i vinter!
http://dejting.se.msn.com/channel/index.aspx?trackingid=1002952

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.