From: Mikkel Bruun Date: 2004-12-23T16:46:58+09:00 Subject: Re: Ruby Cocoa (OS X) questions: deployment & interface builder nobu.nokada@softhome.net wrote: > Hi, > > At Thu, 23 Dec 2004 05:47:01 +0900, > Mikkel Bruun wrote in [ruby-talk:124334]: > >>feisty:~ mb$ g++ -c -I /opt/local/lib/ruby/1.8/powerpc-darwin/ -x >>objective-c++ -framework Cocoa boot.cpp >>g++: -framework: linker input file unused because linking not done >>g++: Cocoa: linker input file unused because linking not done > > > Seems -framework option shouldn't be used to compile. That did the trick! > > >>feisty:~ mb$ g++ -o boot -L/opt/local/lib/ruby/1.8/powerpc-darwin/ >>-lruby-static -framework Cocoa boot.o >>ld: Undefined symbols: >>_ruby_init >>_ruby_options >>_ruby_run > > > Try surrounding `#include "ruby.h"' line by `extern "C" {' and > '}'. > Nope, im still getting ld: Undefined symbols: _ruby_init _ruby_options _ruby_run src is now like .... #include #include extern "C" { #include "ruby.h" } .... now these symbols are defined in ruby.h right?? im using 1.8x, is that a problem?? Thanks for your help Mikkel