Hi,

Ruby 1.8.6-p36
OS X 10.4.9

$ g++ -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure 
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man 
--enable-languages=c,objc,c++,obj-c++ 
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ 
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib 
--build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic 
--program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5363)

Sample code:

#include "ruby.h"

void Init_cvector(){
    VALUE cVector = rb_define_class("CVector", rb_cObject);
}

Whenever I try to build something as simple as the above extension I get 
this error:


g++ -Wall -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.9.1 
-I/usr/local/lib/ruby/1.8/i686-darwin8.9.1 -I.  -fno-common -g -O2 -pipe 
-fno-common  -c cvector.c
/usr/local/lib/ruby/1.8/i686-darwin8.9.1/intern.h:207: error: use of 
enum 'rb_thread_status' without previous declaration
/usr/local/lib/ruby/1.8/i686-darwin8.9.1/intern.h:207: error: invalid 
type in declaration before ';' token

Any ideas?

Thanks,

Dan