Wrong highlighting gmp's functions
I have installed gmp on my linux from repo: sudo apt install libgmp-dev
and Clion doesn't highlight syntax correctly. For example after this code:
mpq_class x;
x.canonicalize();
it says: Class '__gmp_expr' doesn't have a function 'canonicalize'
Did I something wrong or it is a bug?
Clion works good with NTL though.
My CMakeLists.txt:
cmake_minimum_required(VERSION 3.6)
project(eulerseries)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_library(GMP_LIBRARY gmp)
find_library(GMPXX_LIBRARY gmpxx)
set(SOURCE_FILES main.cpp)
add_executable(eulerseries ${SOURCE_FILES})
target_link_libraries(eulerseries "${GMP_LIBRARY}" "${GMPXX_LIBRARY}")
请先登录再写评论。