error: void value not ignored as it ought to be bool type(std::string_view s) { return type(s.data(), s.length()); }

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Ubuntu 20.04, I try to compile the git master version of libime
https://github.com/fcitx/libime but failed. See following for more
detailed info:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

$ git clone https://github.com/fcitx/libime.git libime.git
$ cd libime.git
$ mkdir build && cd $_
$ cmake ..
$ env all_proxy=http://127.0.0.1:8080 make -j 44
[ 28%] Built target kenlm
[ 28%] Building CXX object
src/libime/core/CMakeFiles/IMECore.dir/inputbuffer.cpp.o
In file included from
/home/werner/Public/repo/github.com/fcitx/libime.git/src/libime/core/inputbuffer.cpp:6:
/home/werner/Public/repo/github.com/fcitx/libime.git/src/libime/core/inputbuffer.h:
In member function ‘bool libime::InputBuffer::type(std::string_view)’:
/home/werner/Public/repo/github.com/fcitx/libime.git/src/libime/core/inputbuffer.h:49:48:
error: void value not ignored as it ought to be
49 | bool type(std::string_view s) { return type(s.data(), s.length()); }
| ~~~~^~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/libime/core/CMakeFiles/IMECore.dir/build.make:102:
src/libime/core/CMakeFiles/IMECore.dir/inputbuffer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:816:
src/libime/core/CMakeFiles/IMECore.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Any hints for solving this problem?

Regards,
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@xxxxxxxxx>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux