當我試圖在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