rmmseg-cpp icon indicating copy to clipboard operation
rmmseg-cpp copied to clipboard

Compile error on ruby 1.9

Open chevalun opened this issue 15 years ago • 3 comments

It complains like that: rmmseg.cpp: In function ‘VALUE dic_load_chars(VALUE, VALUE)’: rmmseg.cpp:39: error: ‘struct RString’ has no member named ‘ptr’ rmmseg.cpp: In function ‘VALUE dic_load_words(VALUE, VALUE)’: rmmseg.cpp:54: error: ‘struct RString’ has no member named ‘ptr’ rmmseg.cpp: In function ‘VALUE dic_add(VALUE, VALUE, VALUE, VALUE)’: rmmseg.cpp:73: error: ‘struct RString’ has no member named ‘ptr’ rmmseg.cpp:74: error: ‘struct RString’ has no member named ‘len’ rmmseg.cpp: In function ‘VALUE dic_has_word(VALUE, VALUE)’: rmmseg.cpp:91: error: ‘struct RString’ has no member named ‘ptr’ rmmseg.cpp:92: error: ‘struct RString’ has no member named ‘len’ rmmseg.cpp: In function ‘VALUE tk_create(const char_, const rmmseg::Token&)’: rmmseg.cpp:162: warning: implicit conversion shortens 64-bit value into a 32-bit value rmmseg.cpp: In function ‘VALUE algor_create(VALUE, VALUE)’: rmmseg.cpp:210: error: ‘struct RString’ has no member named ‘ptr’ rmmseg.cpp:211: error: ‘struct RString’ has no member named ‘len’ rmmseg.cpp: In function ‘VALUE algor_next_token(VALUE)’: rmmseg.cpp:234: error: ‘struct RString’ has no member named ‘ptr’ make: *_* [rmmseg.o] Error 1

The patch below fix this problem http://github.com/chevalun/rmmseg-cpp/commit/279bd6fdb6307b24068d343005cfbf918bba88d7

chevalun avatar May 28 '10 08:05 chevalun

Also had this same issue. Thanks for the patch!

whoisjake avatar Mar 21 '11 16:03 whoisjake

Nice, looks like it's fixed in 279bd6fdb6307b24068d343005cfbf918bba88d7 but not pushed out in the gem yet...

whoisjake avatar Mar 21 '11 16:03 whoisjake

does rmmseg-cpp support for sphinx? I am wondering whether it is

wyh770406 avatar Aug 18 '11 08:08 wyh770406