[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: require dll
- From: Wim Langers <wim.langers@...>
- Date: Fri, 17 Apr 2009 09:51:37 +0200
I wrote a C extension to Lua and can load it with 'package.loadlib'.
I somehow thought that I could load it with require (and not hardcode paths). Require finds my dll but then complains that it can't find 'The specified procedure' ?
Looked all over the place to find out what's going on, but no success.
I also read something about naming conventions : I named the dll '_IupRobot.dll' with a 'luaopen__IupRobotLib' (two underscores) and the corresponding lua code 'IupRobot.lua'. Also tried with 'luaopen_IupRobotLib' (one underscore) because I read something about automatically removing the extra underscore.
So the question is : is there a simple way to make this work ?
or alternatively : do I write my own package loader (a la 'BinaryModulesLoader' from the wiki)
ps.: except if not even the word 'lua' is to be found somewhere in the mailing list archive, I suppose the search function doesn't work anymore