# Ruby\_1\_8\_5 undefined reference to \`\_RSTRING\_PTR'

**URL:** <https://www.ruby-forum.com/t/ruby-1-8-5-undefined-reference-to-rstring-ptr/113283>\
**Category:** Development\
**Created:** [August 29, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-undefined-reference-to-rstring-ptr/113283 "2007-08-29T15:07:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Masaki\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Post date:** [August 29, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-undefined-reference-to-rstring-ptr/113283/1 "2007-08-29T15:07:37Z")

</div>

e$B=uED$G$9!#e(B

cygwine$B$N4D6-$Ge(Bruby\_1\_8\_5e$B$r%3%s%Q%$%k$7$h$&$H$7$?$ie(B  
\_RSTRING\_PTRe$B$,8+$D$+$i$J$/$F%j%s%/$,\<:GT$7$^$7$?!#e(B  
revision 13307e$B$G$9!#e(B

libruby-static.a(ruby.o): In function `rubylib_mangled_path': /home/suke/work/ruby/bin-cygwin_1_8_5/../../../../svn/ruby/branches/ ruby_1_8_5/ruby.c:165: undefined reference to`\_RSTRING\_PTR’  
libruby-static.a(ruby.o): In function `ruby_incpush': /home/suke/work/ruby/bin-cygwin_1_8_5/../../../../svn/ruby/branches/ ruby_1_8_5/ruby.c:221: undefined reference to`\_RSTRING\_PTR’  
/home/suke/work/ruby/bin-cygwin\_1\_8\_5/…/…/…/…/svn/ruby/branches/  
ruby\_1\_8\_5/ruby.c:225: undefined reference to `\_RSTRING\_PTR’  
collect2: ld returned 1 exit status  
make: \*\*\* [miniruby.exe] Error 1

ruby\_1\_8\_6e$B$r;29M$K$7$F\<!$N$h$&$K$7$?$i%j%s%/$G$-$^$7$?!#e(B

# Index: ruby.h

— ruby.h (revision 13307)  
+++ ruby.h (working copy)  
@@ -340,6 +340,7 @@  
VALUE shared;  
} aux;  
};  
+#define RSTRING\_PTR(s) (RSTRING(s)-\>ptr)

struct RArray {  
struct RBasic basic;

e$B=uEDe(B e$B2m5\*e(B
