I'm using this old (2001) mini tutorial:

http://www.angelfire.com/electronic2/issac/rb_cpp_ext_tut.txt

When I run make, I get this error:

$ make
cc  -bundle  -L"/usr/lib" -o Test.bundle Test.o  -lruby  -lpthread -ldl
-lobjc
/usr/bin/ld: Undefined symbols:
__Unwind_Resume
std::basic_ostream<char, std::char_traits<char> >::operator<<(int)
std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned
long)
std::ios_base::Init::Init()
std::ios_base::Init::~Init()
std::__throw_bad_alloc()
std::__throw_length_error(char const*)
std::cout
std::basic_ostream<char, std::char_traits<char> >& std::endl<char,
std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
>&)
std::basic_ostream<char, std::char_traits<char> >& std::operator<<
<std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&, char const*)
operator delete(void*)
operator new(unsigned long)
___gxx_personality_v0
collect2: ld returned 1 exit status
make: *** [Test.bundle] Error 1

$ ls
Makefile        Test.cpp        Test.o          extconf.rb

I tried that on mac osx.  Any idea what's wrong?
-- 
Posted via http://www.ruby-forum.com/.