[Gambas-user] Creating a library....

T Lee Davidson t.lee.davidson at gmail.com
Sun Jun 10 19:42:27 CEST 2018


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.

http://gambaswiki.org/wiki/doc/library

For ease of development, you could of course use the two modules as you have done. Then for deployment, move the library module
to the Main module and set the project type as Library.


-- 
Lee


On 06/10/2018 11:10 AM, Demosthenes Koptsis wrote:
> 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?
> 
> 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?
> 
> Thanks.
> 
> 
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----


More information about the User mailing list