当我试图在Linux上单用LuaInterface(在Ubuntu 9.04使用单声道2.0)我得到以下异常:如何使用LuaInterface在Mono/Linux的
** (App.exe:8599): WARNING **: Method ':.DoDllLanguageSupportValidation()' in assembly '/home/ulrich/test/Debug/lua51.dll' contains native code that cannot be executed by Mono on this platform. The assembly was probably created using C++/CLI.
根据this web site LuaInterface 可以是与Mono一起使用。 MoMA也是这样说的。
是否可以重新编译lua51.dll
以使其与Mono兼容?
问题是,lua51.dll不使用DLLImport(),但编译非托管的Lua代码直接到这个托管库。 – ulrichb 2009-10-07 22:16:31
哎呀,应该仔细看过LuaInterface模式。编辑为使其正确。 – 2009-10-07 23:44:03
这听起来不太好,因为http://luainterface.googlecode.com/svn/trunk/lua-5.1.2/lua511/LuaDLL.cpp似乎做了很多“魔术”,...而且, ....为什么没有混合的C++/CLI编译器? – ulrichb 2009-10-08 10:59:05