From: Logan Capaldo Date: 2006-08-08T01:23:25+09:00 Subject: Re: writing native ObjC extension to ruby ?? On Aug 7, 2006, at 12:00 PM, Une b�vue wrote: > Logan Capaldo wrote: > >> Sure you can, Carbon is a C api (and a relatively sane one at that, >> it's almost OO in many ways). > > ok, thanxs, i did a first test following "Extending Ruby" > > > it seems gcc want to use /usr/bin/ld > > gcc didn't found even ruby.h and also from the Test.c example given in > the pickaxe i do have nearly one syntax error per line for ruby.h, > missing.h and the like... > > my gcc command was simply : > gcc -o Test.bundle -bundle -framework Foundation Test.c > > in my working folder i do have : > missing.h > config.h > defines.h > intern.h > ruby.h > Test.c > > then i think, at least, some option to gcc is missing )) > Are you using mkmf? It'll make your life much easier and produce the right compile switches. > -- > une b�vue >