Hi!
I have compiled an official version of Lua (5.1.4) fetched from here:
sourceforge.net/projects/luabinaries/files/5.1.4/Docs%20and%20Sources/lua5_1_4_Sources.zip/download
on a Windows 10 machine using this script:
cl /MD /O2 /c /DLUA_BUILD_AS_DLL *.c
link /DLL /IMPLIB:lua5.1.lib /OUT:lua5.1.dll *.obj
mv lua.obj lua.o
link /OUT:lua.exe lua.o lua5.1.lib /DYNAMICBASE "c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\lib\x86\legacy_stdio_definitions.lib"
When I add this customer lua exe as an interpreter to my LDT installation and try to debug a very simple script (just a print of hello world) I get the following error:
'Debugger process was unexpectedly terminated'
If I "Enable DBGP logging" I can see these printouts:
CREATE from org.eclipse.ldt.debug.core.internal.LuaDebugTarget
MODEL_SPECIFIC/1 from org.eclipse.dltk.launching.InterpreterConfig
CHANGE from org.eclipse.dltk.launching.process.ScriptRuntimeProcess
CREATE from org.eclipse.dltk.launching.process.ScriptRuntimeProcess
CHANGE from org.eclipse.dltk.launching.process.ScriptRuntimeProcess
CHANGE from org.eclipse.dltk.launching.process.ScriptRuntimeProcess
TERMINATE from org.eclipse.dltk.launching.process.ScriptRuntimeProcess
CHANGE from org.eclipse.dltk.launching.process.ScriptRuntimeProcess
TERMINATE from org.eclipse.ldt.debug.core.internal.LuaDebugTarget
I used to do exactly the same on Windows 7 before I upgraded to Windows 10 and then it all worked fine.
Does anybody know what might be wrong?
Thanks!
/Pascal