<html>
    <head>
      <base href="http://bugzilla.scilab.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:sgougeon@free.fr" title="Samuel GOUGEON <sgougeon@free.fr>"> <span class="fn">Samuel GOUGEON</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Error with the help example of ilib_mex_build()"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=3944">bug 3944</a>
                <br><br>
                ---------- Bug Summary ----------- <br>Error with the help example of ilib_mex_build() <br><br>

          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">URL</td>
           <td>-->cd(TMPDIR);
 
-->mputl('ilib_mex_build(''libmex'',[''mexf16'',''mexfunction16'',''cmex''],[],[],''Makelib'','''','''','''')','builder.sce');
 
-->
 
-->mputl([
-->'#include ""mex.h""'
-->'void mexFunction(int nlhs, mxArray *plhs[], int nrhs, mxArray *prhs[])'
-->'{'
-->'  int *dims = mxGetDimensions(prhs[0]);'
-->'  sciprint(""%d %d %d\n"",dims[0],dims[1],dims[2]);'
-->'}'
-->],'mexfunction16.c');
 
-->exec(TMPDIR+'/builder.sce');
   Generate a gateway file
   Generate a loader file
   Generate a Makefile
   ilib_gen_Make: configure : Generate Makefile.
   ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR
   ilib_gen_Make: Copy libmex.c to TMPDIR
   ilib_gen_Make: configure : Generate Makefile.
   ilib_gen_Make: Modification of the Makefile in TMPDIR.
   Running the makefile
 
-->exec(TMPDIR+'/loader.sce');
Link failed for dynamic library '/tmp/SD_12402_//libmex.so'.
An error occurred: /tmp/SD_12402_//libmex.so: undefined symbol: mex_mexfunction16
Link failed for dynamic library '/tmp/SD_12402_//libmex.so'.
An error occurred: /tmp/SD_12402_//libmex.so: undefined symbol: mex_mexfunction16
addinter(libmex_path+'/libmex.so','libmex',list_functions);
                                                           !--error 236 
addinter: The shared archive was not loaded: (null)
at line       8 of exec file called by :    
exec(TMPDIR+'/loader.sce');
           </td>
           <td>
                
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Component</td>
           <td>Dynamic Link
           </td>
           <td>mexlib
           </td>
         </tr></table>
      <p>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>