[Newbies] Interfacing C library
Matthew Fulmer
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:
> Hello,
>
> 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:
http://wiki.squeak.org/squeak/1414
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
mailing list