Finding module names to call libc functions using FFI
Bert Freudenberg
bert at impara.de
Fri Mar 4 12:40:04 UTC 2005
Am 03.03.2005 um 21:44 schrieb Ned Konz:
> I've made UnixShell as a subclass of ExternalObject.
Is there any particular reason for this? I'd rather subclass Object ...
> It has one method:
>
> system: aString
> <cdecl: long 'system' (char *) module: 'c.so.6'>
> ^self externalCallFailed.
>
> I have also tried (without success):
> * using '' as a module name (hoping to get the version linked into my
> Squeak
> executable, if any)
This used to work fine. You might try to enable the debug output in
sqUnixExternalPrims.c to trace the problem. It should print "loaded:
<intrinsic>" with an empty module name ...
- Bert -
More information about the Squeak-dev
mailing list
|