<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi!<br>
      <br>
      I found a solution to the dummy main problem: see section  f2c 
      in  <a class="moz-txt-link-freetext" href="http://www.tfinley.net/notes/blas-lapack/">http://www.tfinley.net/notes/blas-lapack/</a><br>
      <br>
      However, I am stuck with the problem:<br>
      <blockquote>link(setulb_path + 'libsetulb' + getdynlibext(),
        ['setulb'],'f');<br>
                                                                        
        !--error 235 <br>
        link: problem with one of the entry point.<br>
        at line      14 of exec file called by :    <br>
        exec loader.sce<br>
      </blockquote>
      The libsetulb library is produced by <br>
      <blockquote>link_name = 'setulb'; <br>
        flag  = "f";         //  is a FORTRAN77 code<br>
        files = ['LBFGSB.f'  ];   // source files for LBFGSB<br>
        // the next call generates files (Makelib,loader.sce) used<br>
        // for compiling and loading LBFGSB and performs the compilation<br>
        libs = ["libf2c"];<br>
        ilib_for_link(link_name,files,libs,flag,[]);<br>
      </blockquote>
      and LBFGSB.f contains the code of the subroutine setulb (and many
      more subroutines). No error or warning is produced by this builder
      code and the file libsetulb.so is created<br>
      <br>
      However, nm -g libsetulb.so returns only:<br>
      <blockquote>nm -g libsetulb.so <br>
                         w _Jv_RegisterClasses<br>
        0000000000201010 A __bss_start<br>
                         w __cxa_finalize@@GLIBC_2.2.5<br>
                         w __gmon_start__<br>
        0000000000201010 A _edata<br>
        0000000000201020 A _end<br>
        0000000000000588 T _fini<br>
        0000000000000440 T _init<br>
      </blockquote>
      no trace of my entry points. <br>
      <br>
      <br>
      I work under Ubuntu 12.04 (precise) with scilab 5.4.1.<br>
      <br>
      Any clue will be much appreciated.<br>
      <br>
      JPD<br>
      <br>
      <br>
      <br>
      Le 2013-08-09 00:22, Jean-Pierre Dussault a écrit :<br>
    </div>
    <blockquote cite="mid:52046E97.8040700@Usherbrooke.CA" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hi!<br>
      <br>
      I struggle to interface L-BFGS-B, an optimization solver written
      in FORTRAN.<br>
      <br>
      Here is my builder<br>
      <blockquote>// builder code for LBFGSB<br>
        // functions to be added to the call table <br>
        link_name = ['setulb']; <br>
        flag  = "f";         //  is a FORTRAN functions <br>
        files = ['LBFGSB.f' ];   // objects files for LBFGSB<br>
        // the next call generates files (Makelib,loader.sce) used<br>
        // for compiling and loading LBFGSB and performs the compilation<br>
        libs = "";<br>
        ilib_for_link(link_name,files,libs,flag,'','loaderL.sce');<br>
        <br>
      </blockquote>
      The loader complains libsetulb.so: undefined symbol: s_wsle<br>
      <br>
      To get this symbol, all I found is to use /usr/lib/libf2c.so (I
      change the libs variable to libs = "/usr/lib/libf2c";<br>
       but then, the loader complains<br>
      <blockquote>/usr/lib/libf2c.so: undefined symbol: MAIN__<br>
      </blockquote>
      So I am stuck.<br>
      <br>
      I wonder, the supported compilers states<br>
      <blockquote>On GNU/Linux, GNU compilers (gcc, g++ and gfortran)
        are packaged in all distributions.<br>
      </blockquote>
      and I have gfortran but need to install libf2c to get s_wsle...<br>
      <br>
      <br>
      Thank you,<br>
      <br>
      JPD<br>
      <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>