[Newbies] Interfacing C library
tapplek at gmail.com
Sun Mar 13 12:55:07 UTC 2011
On Sun, Mar 13, 2011 at 03:35:12PM +0530, Karthic Kumaran wrote:
> I am creating an ID3 tag editor in squeak smalltalk. There is a C library called id3lib that is capable of parsing and modifying id3tags.
> I have been searching the squeak wiki but I do not understand how to interface smalltalk code with this library(looked at FFI,Named Primitives). Any help would be greatly appreciated.
FFI is the way to go. For instructions on using it:
Basically, you create a method that contains just a pragma
detailing the calling convention of your target C method
Matthew Fulmer (a.k.a. Tapple)
More information about the Beginners