From: Simon R. <sra...@st...> - 2010-01-23 21:19:34
|
Hello list, I have an older CentOS 5.3 machine with Ruby 1.8.5 standing in a data center. simspark-0.2 cannot be compiled on this machine because RSTRING_PTR(x) in lib/zeitgeist/scriptserver/rubywrapper.cpp and RARRAY_LEN(x) in lib/zeitgeist/scriptserver/scriptserver.cpp have to be changed back to RSTRING(x)->ptr and RARRAY(x)->len, like in simspark-0.1. If anybody else is having problems using older Ruby versions too we should probably introduce #ifdefs of the following form #ifndef RSTRING_PTR # define RSTRING_PTR(s) (RSTRING(s)->ptr) #endif #ifndef RARRAY_LEN # define RARRAY_LEN(s) (RARRAY(s)->ptr) #endif so the new code works for everybody. -- mit freundlichen Grüßen/regards Simon Raffeiner University of Applied Sciences Offenburg, Germany Department of Computer Science, RoboCup Team |