<div>Hi:</div><div> </div><div>You can first create *.def files from DLL with following source :  <br></div><div>----------------- impdef.cpp ---------------------</div><div>#include <windows.h><br>#include <stdio.h><br>
    void main(int argc,char**argv) { <br>      DWORD* dll=(DWORD*)LoadLibrary(argv[1]); <br>      DWORD *nt=dll+dll[15]/4+6, *dir=nt+24, *exports=(DWORD*)(nt[7]+dir[0]), *name=(DWORD*)(nt[7]+exports[8]), *addr=(DWORD*)(nt[7]+exports[7]);<br>
  <br>      printf("LIBRARY %s\nEXPORTS\n",argv[1]);<br>      for(DWORD i=0;i<exports[6];i++) {<br>          printf("  %s\n",nt[7]+name[i]);<br>      }<br>}       <br></div><div>----------------------------------------</div>
<div> </div><div>and then generate import libraries using VC's lib command.</div><div> </div><div>For example:</div><div> </div><div>cd SCI/bin</div><div> </div><div>  impdef elementary_functions.dll > elementary_functions.def<br>
  lib /machine:i386 /def:elementary_functions.def</div><div> </div><div>will generate elementary_functions.lib on SCI/bin.</div><div> </div><div> </div><div>YungLee</div><div> </div><div class="gmail_quote">2012/6/30 ierturk <span dir="ltr"><<a href="mailto:ierturk@ieee.org" target="_blank">ierturk@ieee.org</a>></span><br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div class="im">I have a problem with building scicos block computational function library<br>

from c-code. Function includes an elementary function from<br>
elementary_functions and elementary_functions_f libraries. While libraries<br>
is built successfully under 32-bit Debian Squeeze system, but not under<br>
32-bit Windows. I think, I need to below object libraries under windows.<br>
<br>
** elementary_functions.lib<br>
** elementary_functions_f.lib<br>
<br>
But windows distribution of Scilab-5.3.3 includes only dll libraries of<br>
them, but not object libraries. How do I get the symbols from elementary<br>
function libraries? Please let me know, if you have any comment on this<br>
problem.<br>
<br>
Thank in advance,<br>
Ibrahim<br>
<br>
--<br>
</div>View this message in context: <a href="http://mailinglists.scilab.org/Windows-distributions-of-Scilab-does-not-include-Elementary-Function-Object-Libraries-tp4024467.html" target="_blank">http://mailinglists.scilab.org/Windows-distributions-of-Scilab-does-not-include-Elementary-Function-Object-Libraries-tp4024467.html</a><br>

Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
To unsubscribe from this mailing-list, please send an empty mail to<br>
<a href="mailto:dev-unsubscribe@lists.scilab.org">dev-unsubscribe@lists.scilab.org</a><br>
To check the archives of this mailing list, see<br>
<a href="http://mailinglists.scilab.org/" target="_blank">http://mailinglists.scilab.org/</a><br>
<br>
</div></div></blockquote></div><br>