centos7 安装opencc问题
make一直出错
CMakeLists.txt文件修改 c++=11 ==>
https://github.com/BYVoid/OpenCC/commit/8cfee2627146d1912655fb70b413ae27b1b5c026
修改部分如下把14改成11 -std=c++14 ==> -std=c++11
-DVERSION="$OPENCC_VERSION"
add_definitions(
-std=c++11
-Wall
)
set(CMAKE_EXE_LINKER_FLAGS "$CMAKE_EXE_LINKER_FLAGS -pthread")
if (CMAKE_BUILD_TYPE MATCHES Debug)
add_definitions(-O0 -g3)
endif ()
elseif ("$CMAKE_CXX_COMPILER_ID" STREQUAL "GNU")
add_definitions(
-std=c++11
-Wall
)