help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] DLD not working?


From: Rob Hoelz
Subject: Re: [Help-smalltalk] DLD not working?
Date: Mon, 12 Nov 2007 01:43:55 -0600

Paolo Bonzini <address@hidden> wrote:

> > DLD addLibrary: 'libc'.
> > 
> > !SystemDictionary methodsFor: 'c callouts'!
> > stringCompare: lhs with: rhs
> >     <cCall: 'strcmp' returning: #int args: #(#string #string)>
> > ! !
> > 
> > Transcript print: (Smalltalk stringCompare: 'foo' with: 'bar'); cr.
> 
> Hum, nothing.  I tried your example on PPC Mac OS X (2.3.6 and
> 2.95f), i386-linux (2.95f), x86_64-linux (2.95f), and it always
> worked.  It printed 4 or 1 depending on the platform -- but it
> worked.  I also tried
> 
> !String methodsFor: 'c callouts'!
> 
> strcmp: rhs
>      <cCall: 'strcmp' returning: #int args: #(#self #string)>
> ! !
> 
> and it worked well too.
> 
> Paolo

I tried that second example, but I'm still getting test.st:5: C
function not defined.  Does this mean my Smalltalk was built without
dynamic linking support?  Please let me know if you need any other
information to help us diagnose this problem.

Thanks,
Rob Hoelz




reply via email to

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