[Gambas-user] Creating a library....
Demosthenes Koptsis
demosthenesk at gmail.com
Sun Jun 10 20:10:01 CEST 2018
i use a module not a class.
the easy way is to copy/insert the gbLibc module file to your project
and start using it.
the other way is to compile it as library not component.
this is my question. In a library project do we need Main module (i use
command line project)?
On 06/10/2018 09:05 PM, Tobias Boege wrote:
> On Sun, 10 Jun 2018, T Lee Davidson wrote:
>> As I understand it, for final deployment, you should not have a Main module _and_ a library module. The Main module should be
>> your library. For testing, create a new project that uses the compiled library.
>>
> I'm not sure if I subscribe to that, even though I've never formally written
> a library, only components. Try running the gb.form component (yes, you read
> that right):
>
> $ /usr/lib/gambas3/gb.form.gambas
>
> Even though it is an official component, which is as deployed as it gets,
> it still contains a test class as its startup class. If the .gambas file
> is used like a component, it doesn't matter what its startup class is;
> only the exported classes matter.
>
> Regards,
> Tobi
>
More information about the User
mailing list