[Gambas-user] Get structure from extern function?

Jussi Lahtinen jussi.lahtinen at ...626...
Fri Jul 4 14:13:27 CEST 2014


I don't know the language, but shouldn't "Tripple := numberin * 3" be
"Tripple := numberin * 3;"? That would seem consistent.

Also byte cannot hold values like 01, is just same as 1.


Jussi


On Fri, Jul 4, 2014 at 3:00 AM, CJ <lists at ...2828...> wrote:

>
> Sorry if this message appears twice on the list, had some issues posting
> again...
>
> > Can you show the C code of that shared library ?
>
> It's a shared library written in Free Pascal 2.6.2. Attached is source code
> as
> well as a compiled library for Xubuntu 14.xx (i386), it's very basic
> code...
>
> To install the library copy the file libtest.so to "/usr/local/lib" and
> then
> type "ldconfig".
>
> In the library are two functions exported. Tripple is only there to see
> that
> the library works...
>
>   Tripple
>   LIBVersion
>
> The simple Gambas 3 demo first calls Tripple with "3" as an argument and
> then
> calls LIBVersion() but crashes the interpreter with a Segmentation fault
> (11) message.
>
> Comment out the call to LIBVersion() and you should see "9" on the form.
>
> /CJ
>
>
>
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>



More information about the User mailing list