[Scilab-users] "findmsvccompiler" is buggy!?

antoine.elias at scilab-enterprises.com antoine.elias at scilab-enterprises.com
Fri Mar 24 01:15:40 CET 2017


Well it seems that someone have some problem with copy/paste ( me ^^ )

fix -> https://codereview.scilab.org/#/c/19226/

But on my computer with 6.0.0 release:

--> findmsvccompiler //default value
  ans  =
  msvc120pro

--> setenv("SCILAB_PREFERED_MSVC","msvc140pro");
--> findmsvccompiler
  ans  =
  msvc140pro

Works well.

Thank you
Antoine

Le 2017-03-23 22:57, Dirk Reusch a écrit :
> 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
>> 



More information about the users mailing list