help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] DLD usage?


From: Alexander Lazarevic
Subject: [Help-smalltalk] DLD usage?
Date: Fri, 19 Apr 2002 13:43:43 +0200

Just for the heck of it I tried to do a c-callout to a libc function. What am 
I missing here?

DLD addLibrary: '/usr/lib/libc.a'!

File class
   defineCFunc: 'tmpnam'
   withSelectorArgs: 'primTmpnam:'
   returning: #string args: #(#string).

!

Results in:

Object: 'primTmpnam:
    "C call-out to system. Do not modify!"
    <primitive: 255>
    CFunction25.
    SystemExceptions CInterfaceError signal: 'Invalid C call-out system'
' error: parse error
String(Object)>>#originalPrimError:

Alex
-- 
"Why is that man in pink?  "Oh, that's Homer Simpson, sir. He's one of
your boobs from Sector 7-G."  -- Burns and Smithers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]