<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>ok!</p>
    <p>the Main module file should i keep it? Or remove it?</p>
    <p>Now i just keep it for testing the gbLibc module with external
      functions.</p>
    <p>The final lib should have a Main module?<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 06/10/2018 09:35 PM, Jussi Lahtinen
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFJMe7S5rQtEbaCO0dE4BvV7ng8-3+4ZT1YN9Ht75nULVKizwA@mail.gmail.com">
      <div dir="ltr">
        <div>You can export modules also (they really are classes).</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Jussi<br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sun, Jun 10, 2018 at 9:29 PM,
          Demosthenes Koptsis <span dir="ltr"><<a
              href="mailto:demosthenesk@gmail.com" target="_blank"
              moz-do-not-send="true">demosthenesk@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div 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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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?
              <div>
                <div class="h5"><br>
                  <br>
                  <br>
                  <div class="m_1393380117557391780moz-cite-prefix">On
                    06/10/2018 09:24 PM, Christof Thalhofer wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <pre>Am 10.06.2018 um 17:10 schrieb Demosthenes Koptsis:
</pre>
                    <blockquote type="cite">
                      <pre>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>No.

</pre>
                    <blockquote type="cite">
                      <pre>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>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/<wbr>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="m_1393380117557391780mimeAttachmentHeader"></fieldset>
                    <br>
                  </div>
                </div>
                <pre>----[ Gambas mailing-list is hosted by <a class="m_1393380117557391780moz-txt-link-freetext" href="https://www.hostsharing.net" target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a> ]----
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            <br>
            ----[ Gambas mailing-list is hosted by <a
              href="https://www.hostsharing.net" rel="noreferrer"
              target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a>
            ]----<br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <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>