Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenMP headers #534

Open
haji-ali opened this issue May 24, 2019 · 0 comments
Open

OpenMP headers #534

haji-ali opened this issue May 24, 2019 · 0 comments

Comments

@haji-ali
Copy link

haji-ali commented May 24, 2019

I have a simple code as follows

#include <iostream>
#include <omp.h>

int main() {}

with the json file (generated by cmake)

[
{
  "directory": "./build",
  "command": "c++  -fopenmp   -std=gnu++14 -o CMakeFiles/project.dir/main.cpp.o -c ./main.cpp",
  "file": "./main.cpp"
}
]

with GCC

% c++ --version
c++ (GCC) 8.2.1 20180905 (Red Hat 8.2.1-3)

However, irony cannot fine the header file even though the c++ command is successful without errors.

 main.cpp            8  10 error           'omp.h' file not found (irony)

Any idea how I can fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant