[Gambas-user] User library

vuott at tiscali.it vuott at tiscali.it
Wed Jun 27 14:02:38 CEST 2018


  
Hello, 
"Extern" only for shared-library .so, not for gambas library
! 
bye 
vuott 

Il 27.06.2018 11:19 Antonio Teixeira ha scritto: 

> Hi
everyone, 
> I am trying for the first time to make a library and then
use her. 
> I saw the wiki page about that but I cant to put the library
to work. 
> I build a library like that: 
> 
> _Export _ 
> _Public Sub
Main()_ 
> _ Print "Hello world"_ 
> _End_ 
> _Public Function test() As
String_ 
> _ Return "test"_ 
> _End _ 
> 
> Defined as library, and
version is 1.0.0 
> 
> On my program I defined the library in the
project/libraries 
> and my code to access the function is: 
> 
>
_Private Extern test() In "zzzzzzz.1.0"_ 
> 
> _Public Sub _new()_ 
> _
Dim a As String _ 
> 
> _ a = test()_ 
> _ _ 
> _End_ 
> I think the
"extern" definition isnt correct but I cant find any information about
how she must be. 
> Any help please? 
> Thanks in advance. 
> Antonio
Teixeira
  


Con MyOpen hai Giga, SMS e i minuti che vuoi da 3€ al mese, per sempre. Cambi gratis quando e come vuoi e in più hai 10€ di credito omaggio. http://tisca.li/myopenjun18

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180627/bfffd941/attachment.html>


More information about the User mailing list