From: "Iñaki Baz Castillo" Date: 2009-04-04T00:38:12+09:00 Subject: Re: (Ruby 1.9.1) error: ‘struct RString’ has no member named ‘ptr’ 2009/4/3 Iñaki Baz Castillo : > Hi, trying to compile a C extension I get this error in Ruby 1.9.1: > >  error: ‘struct RString’ has no member named ‘ptr’ > > The code is: > > --------------------------------------- > #include > #include > > static VALUE my_method(VALUE self, VALUE arg) { > >        char* name = RSTRING(arg)->ptr; > --------------------------------------- It seems that I mut use: char* name = RSTRING_PTR(arg); Am I right? -- Iñaki Baz Castillo