<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><span style="color: rgb(64, 64, 64); font-family: sans-serif;
        font-size: medium; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(248, 248, 248); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;">EXPORT<br>
      </span></p>
    <p><span style="color: rgb(64, 64, 64); font-family: sans-serif;
        font-size: medium; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(248, 248, 248); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;">This keyword, when placed alone at the
        beginning of a class file declares the class as<span> </span></span><em
        style="color: rgb(64, 64, 64); font-family: sans-serif;
        font-size: medium; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: 400; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(248, 248, 248); text-decoration-style:
        initial; text-decoration-color: initial;">exported</em><span
        style="color: rgb(64, 64, 64); font-family: sans-serif;
        font-size: medium; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(248, 248, 248); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;">.</span></p>
    i use a Module not a Class file.<br>
    Should i use a class?<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 06/10/2018 09:24 PM, Christof
      Thalhofer wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de">
      <pre wrap="">Am 10.06.2018 um 17:10 schrieb Demosthenes Koptsis:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello, i want to port to gambas the libc library, so i decided to create 
a library project.

i have some questions...

1) First i created a new project as a command line project

2) i added a module file for all Public Extern functions, named gbLibc

3) i have also a Main module for testing purposes.

i want to ask when a choose from project properties "Library" as project 
type, i need the Main module?
</pre>
      </blockquote>
      <pre wrap="">
No.

</pre>
      <blockquote type="cite">
        <pre wrap="">Or before i compile the project i need to remove the Main module and 
have only the gbLibc module?

How i must setup the project to create a library?
</pre>
      </blockquote>
      <pre wrap="">
Flag the project as library and give it a vendor name.

Every class or module that has to bee seen from outside (in other
projects) must contain the word "Export" in the beginning.

Only public methods can be used in other projects.

If it is compiled, the IDE will install it locally in the dir

~/.local/share/gambas3/lib/vendorname

>From now on you can see it in the library tab of the project dialog of
other projects.

In other projects that will rely on the lib every exported class or
module will be seen and can be accessed as

Classname.PublicMethod(...)

If cou create an installation package for a Linux distro then the
library will be installed in

/usr/lib/gambas3/vendorname

Alles Gute

Christof Thalhofer

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">
----[ Gambas mailing-list is hosted by <a class="moz-txt-link-freetext" href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----
</pre>
    </blockquote>
    <br>
  </body>
</html>