Use FFI with Linux / Ubuntu ?
Andreas Raab
andreas.raab at gmx.de
Thu Mar 2 17:58:32 UTC 2006
If it says "Error: unable to find function address" then your library
isn't compiled correctly, e.g., doesn't export the entry point
correctly. Two things to check:
1) Do you export the symbol properly?
2) Do you use a C++ compiler? (this would mangle the name)
Cheers,
- Andreas
bouchet vincent wrote:
> Hello,
>
> I'm squeak newbie and I want to use a C DLL with FFI on Linux (I use
> the The Ubuntu Linux distribution).
>
> I have a function test which is written in a Linux C DLL. It works
> when I call it from an exe.
> When I call it from my class I obtain the error message : "Error: unable
> to find function address"
>
> ---------------------------------------------------------------------
> TestClass>>testLinux
> <cdecl: void 'test' (void) module: 'test.so'>
> ^self externalCallFailed
> ---------------------------------------------------------------------
>
> I use FFI with windows for an C Windows DLL and it works correctly, so
> is the FFI package works with Linux / Ubuntu ?
>
>
> thanks,
>
> Vincent
>
>
> ------------------------------------------------------------------------
>
>
More information about the Squeak-dev
mailing list
|