[Newbies] Interfacing C library

Matthew Fulmer tapplek at gmail.com
Sun Mar 13 13:04:07 UTC 2011


On Sun, Mar 13, 2011 at 08:55:07AM -0400, Matthew Fulmer wrote:
> 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

To get it, point Monticello at http://source.squeak.org/FFI, and
load
FFI-Pools
FFI-Kernel
FFI-Tests
FFI-Win32
FFI-Unix
FFI-MacOS

The tests and platform-specific bits have some good examples on
using it too

-- 
Matthew Fulmer (a.k.a. Tapple)


More information about the Beginners mailing list