RcppArmadillo code completion


RStudio projects using RcppArmadillo do not have code completion because when code completion runs clang, it returns the following error:

error: OpenMP support and version of OpenMP (31, 40 or 45) was disabled in PCH file but is currently enabled

The compilation arguments are as follows on my computer, and they include -fopenmp. How can I change the compilation arguments not to include -fopenmp, so that code completion will work correctly?

Alternatively (and preferably), how do I enable OpenMP support in the PCH file?

"-IC:/Program Files/RStudio/resources/libclang/builtin-headers/5.0.2",
"-IC:/Program Files/RStudio/resources/libclang/builtin-headers/libc++/5.0.2",

This seems like an RStudio bug. See also: https://github.com/rstudio/rstudio/issues/4685

Would you mind adding this for extra context on that issue?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.