我是新來的Nim編程語言,來自Lua背景,它使我興奮發現有一個模塊可以將Lua綁定添加到Nim。當導入用於Lua綁定的Nim模塊時,錯誤顯示:「無法加載:lua(| 5.1 | 5.0).dll」
我安裝了Windows的Nimble(Nim的包管理器),並執行「靈活安裝lua」來下載並安裝正確的模塊。在試圖將其導入並編譯源,發生這種情況:
C:\Users\Ashley\Desktop\Stuff\Coding\Nim\Projects\LuaTest>nim c -r "C:\Users\Ashley\Desktop\Stuff\Coding\Nim\Projects\LuaTest\main.nim"
Hint: system [Processing]
Hint: main [Processing]
Hint: lua [Processing]
CC: main
CC: lua_lua
Hint: [Link]
Hint: operation successful (10698 lines compiled; 1.262 sec total; 16.163MB; Debug Build) [SuccessX]
could not load: lua(|5.1|5.0).dll
Error: execution of an external program failed: 'c:\users\ashley\desktop\stuff\coding\nim\projects\luatest\main.exe '
我的Lua 5.1已經與PATH正確的項安裝。它位於Program Files(x86)中。該目錄包含一個名爲lua5.1.dll的dll。我試圖在Google上查找錯誤,但沒有任何結果有所幫助。可能是什麼問題呢?
嘗試將dll放在與項目相同的目錄中:'C:\ Users \ Ashley \ Desktop \ Stuff \ Coding \ Nim \ Projects \ LuaTest' – hjpotter92
@ hjpotter92同樣的問題發生 – NotAshley
如果你把它放在目錄哪裏安裝了nim – hjpotter92