<div dir="ltr">On Sun, Dec 11, 2011 at 23:35, Torsten Bonde Christiansen <span dir="ltr"><<a href="mailto:tc@epidata.dk">tc@epidata.dk</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <tt>Hi.<br>
      <br>
      I'm trying to create a shared library (under linux) and I not sure
      what the<br>
      difference between the modifier <b>export</b> and the section <b>exports</b>
      is? Or perhaps<br>
      when to use one and the other...<br></tt></div></blockquote><div><br>export means that you can control the name of a symbol in how it will be in the elf file itself of the so.<br>So you call your original procedure Foo, but you export it as 'baz', so using objdump in Linux, you'll find "baz" and not "Foo".<br>

<br>Exports, is the way to tell the compiler what are the symbols you wish to make available for reuse in the so file itself, so I could bind to them.<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div bgcolor="#FFFFFF" text="#000000"><tt>
      <br>
      I have read both the programmers guide (7.2) and reference guide
      (11.9.3) but this<br>
      didn't really help me.<br>
      <br>
      Kind regards,<span class="HOEnZb"><font color="#888888"><br>
      Torsten Bonde Christiansen.<br>
    </font></span></tt>
  </div>

<br>_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br></div>