[Scilab-users] "findmsvccompiler" is buggy!?
Dirk Reusch
lists at kybdr.de
Thu Mar 23 22:57:54 CET 2017
Hello Antoine,
Please have a look at "dlwFindMsVcCompiler" (cf. below), the list
entries of
funcs = list( ... )
and the entries of
compilers = [ ... ]
do *not* match!
Best regards,
Dirk
---------------------------------------------------------------
function MSCompiler = dlwFindMsVcCompiler()
MSCompiler = "unknown"; // unknown
// We use always last version of MS compiler
val = getenv("SCILAB_PREFERED_MSVC", "");
if val <> "" then
funcs =
list(dlwIsVc14Express,dlwIsVc12Pro,dlwIsVc14Express,dlwIsVc12Pro,dlwIsVc11Express,dlwIsVc11Pro,dlwIsVc10Express,dlwIsVc10Pro);
compilers = [ ... "msvc140express";
"msvc140pro";
"msvc120express";
"msvc120pro";
"msvc110express";
"msvc110pro";
"msvc100express";
"msvc100pro";];
idx = find(val == compilers);
if idx <> [] then
func = funcs(idx);
if func() then
MSCompiler = val;
return;
end
end
end
...
On Thu, 23 Mar 2017 22:26:18 +0100
antoine.elias at scilab-enterprises.com wrote:
>
>
> Hello,
>
> Can you try with :
>
> setenv("SCILAB_PREFERED_MSVC","msVC140pro")
>
> I have 4 versions of VS on my computer and I can switch without
> trouble.
>
> Regards,
> Antoine
>
> Le 2017-03-23 21:55, Dirk Reusch a écrit :
> > Hello,
> >
> > Having installed VS 2013 ("msvc120express") and VS 2015
> > ("msvc140pro") and trying to force the use of VS 2015 via
> >
> > setenv("SCILAB_PREFERED_MSVC","mscv140pro")
> >
> > I have noticed that "findmsvccompiler()" still reports
> > "msvc120express".
> >
> > IMHO there is a bug in "dlwFindMsVcCompiler()", because
> > "dlwIsVc14Pro()" returns correctly %t.
> >
> > Best regards,
> >
> > Dirk
> > _______________________________________________
> > users mailing list
> > users at lists.scilab.org
> > http://lists.scilab.org/mailman/listinfo/users
>
--
Kybernetik Dr. Reusch | Phone +49 (0)7127 9579 296
Juchtlenstrasse 11 | Fax +49 (0)7127 9579 297
72124 Pliezhausen | E-Mail reusch at kybdr.de
Germany | Internet www.kybdr.de
More information about the users
mailing list