[Gambas-user] Sharing Code Between Projects

Christof Thalhofer chrisml at ...3340...
Wed Jun 7 13:33:26 CEST 2017


Am 06.06.2017 um 16:13 schrieb alexchernoff:
> Correct, "import" only creates a local copy, and using a symlink 
> results in read only code in the IDE.
> 
> The goal is to edit shared centralised modules and having all 
> projects see the changes.

You can do this by creating a project as library. After you compiled it
once and mad an executable with Ctrl-Alt-X, all modules and classes with
the magic word "Export" in the beginning are shared by the library and
can be used in other projects.

You have to choose the library inside the other projects' definition
dialog (in the IDE).

So you can outsource common code and use it in a lot of projects.

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

Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20170607/541e346e/attachment.sig>


More information about the User mailing list