<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 21/02/2019 à 11:14, Vilppu a écrit :<br>
    </div>
    <blockquote cite="mid:1550744064376-0.post@n3.nabble.com"
      type="cite">
      <pre wrap="">Hello,

Has anyone tried using code generation on my example model? 

I installed the new Scilab 6.0.2 and with that I get even less far with code
generation. When trying code generation I get this Scilab pop-up window
message:
Undefined operation for the given operands. check or define function %c_a
for overloading.</pre>
    </blockquote>
    <br>
    To once and for all fix this issue in your Scilab 6.0.2 sessions, <i>provided
      that you have</i><i><br>
    </i><i>write permissions on the Scilab installation directory</i>,
    please do the following:<br>
    <br>
    <tt>edit do_compile_superblock42</tt><tt><br>
    </tt><tt>// CTRL+F: search the [++"] pattern (without []) and
      replace ++" => +"</tt><tt><br>
    </tt><tt>// Save the file</tt><tt><br>
    </tt><tt>predef clear</tt><tt><br>
    </tt><tt>Dir = SCI+"/modules/scicos/macros/scicos_scicos";</tt><tt><br>
    </tt><tt>genlib("scicos_scicoslib", Dir)</tt><br>
    <br>
    That's all. Restart Scilab.<br>
    In Scilab 6.0.2, "operation +" issues  do not occur, at least no
    before compiling. I get:<br>
       Generate a loader file<br>
       Generate a Makefile<br>
       Running the Makefile<br>
    <br>
    !sorry compiling problem               !<br>
    !A Fortran or C compiler is required.  !<br>
     blk  = <br>
        []<br>
    <br>
    This %c_a() issue <a href="https://codereview.scilab.org/20885">is
      being fixed</a> in the next Scilab release.<br>
    On your side, do you still get "operation +" warnings with 6.0.2?<br>
    <br>
    Samuel<br>
    <br>
  </body>
</html>