-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.9.0, Qt Creator 4.13.0
-
None
-
Windows 10
QtCreator 4.9.0
When I use the Armadillo libary and enable OpenMP, the Clang Code Model gives me a lot of errors in the IDE, but compilation works fine.
Here is a minimal example
cmake_minimum_required(VERSION 2.8)
project(test-qtcreator-openmp-arma)
add_executable(${PROJECT_NAME} "main.cpp")
find_package(Armadillo REQUIRED)
target_include_directories(${PROJECT_NAME} PRIVATE ${ARMADILLO_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${ARMADILLO_LIBRARIES})
FIND_PACKAGE(OpenMP REQUIRED)
target_link_libraries(${PROJECT_NAME} OpenMP::OpenMP_CXX)
#include <armadillo> int main() { arma::vec v; return 0; }
This shows the error `no type named 'vec' in namespace 'arma'` on line 5, but compiles just fine. This can get pretty annoying when arma is used everywhere, and has made me disable the Clang Code Model completely for such projects.
- relates to
-
QTCREATORBUG-22225 "unexpected OpenMP directive" for included header file
-
- Closed
-