I have a problem at make step to install a downloaded package consisted of different programs.
In file included from kcdbext.cc:16:0:
kcdbext.h: In member function �char* kyotocabinet::IndexDB::get(const char*, size_t, size_t*)':
kcdbext.h:1281:14: error: cannot convert �bool' to �char*' in return
return false;
1) I have tried
export LANG="en_US.UTF-8"; make
to correct the weird characters, but this seems to be a temporary fix. What is the permanent fix?
2) The error message is
kcdbext.h: In member function 'char* kyotocabinet::IndexDB::get(const char*, size_t, size_t*)':
kcdbext.h:1281:14: error: cannot convert 'bool' to 'char*' in return:
return false;
The code fragment of the function prototype is:
char* get(const char* kbuf, size_t ksiz, size_t* sp) {
if (omode_ == 0) {
//......
return false;
}
//more code ...
return rbuf;
}
I know the function is declared as char *, which is conflict with the returned value as a boolean "false". How to fix this syntax problem?
Thanks a lot!