On Aug 7, 2006, at 12:00 PM, Une bñ×ue wrote: > Logan Capaldo <logancapaldo / gmail.com> 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" > <http://www.rubycentral.com/book/ext_ruby.html> > > 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ñ×ue >