gcc lib.c -o librime-emacs.so -fPIC -O2 -Wall -shared -lrime
lib.c: In function ‘set_cursor_pos’:
lib.c:293:16: error: ‘RimeApi {aka struct rime_api_t}’ has no member named ‘set_caret_pos’; did you mean ‘get_caret_pos’?
rime->api->set_caret_pos(rime->session_id, pos);
^~~~~~~~~~~~~
get_caret_pos
lib.c: In function ‘inline_ascii’:
lib.c:394:18: error: ‘RimeApi {aka struct rime_api_t}’ has no member named ‘user_config_open’; did you mean ‘config_open’?
if(!rime->api->user_config_open("build/default.yaml", conf)) {
^~~~~~~~~~~~~~~~
config_open
Makefile:40: recipe for target 'lib' failed
make: *** [lib] Error 1