0
Scetoexe - No script.exe file has been generated

Hy everyone,

I'm trying to generate a .exe file using the example script from scetoexe toolbox in Scilab:

// Display the demo sample file in console:
script = scetoexe_getRootPath() + "\demos\example.sce";
f = mgetl(script);
write(%io(2), f);
// Find the C compiler:
if ~isdef("devenv","l") & (~haveacompiler() | findmsvccompiler()=='unknown')
devenv = uigetfile("*.exe","","Please select the ""devenv.exe"" compiler program");
end
if devenv==[]
devenv = "devenv"
end
// We will store the .exe in TMPDIR
// Now build the .exe, and do not remove compilation files:
[output, OK, exitCode] = scetoexe(script, TMPDIR, devenv, %f)
// Finally: start the .exe
if OK
dos("start """+TMPDIR+"\example.exe""")
else
cd(TMPDIR)
end

The problem is that once I run it, it gives "No script.exe file has been generated" as a response. Any help would be much appreciated.

Thanks


Scilab 15-12-22, 6:40 p.m. _gioT_

Log-in to answer to this question.