CLion not able to find header files
已回答
I imported a C++ project as a new project. CMake compiled it fine, but when I tried to run the program, I got header error:
fatal error: 'sys/eventfd.h' file not found
I'm new to C++, but as far as I'm aware, sys/eventfd.h is a standard built-in library. What is it not able to find it? I've tried Tools > CMake > Reset Cache and Reload Project
请先登录再写评论。
Hello!
1. Are you on Linux?
2. Please attach a screenshot of `File | Settings | Build, Execution, Deployment | Toolchains` (please capture the screenshot after the compiler detection is completed).
Hey, I'm a mac and here are my settings:
sys/eventfd.his Linux specific, that's why it's not found. See https://stackoverflow.com/questions/26603615/os-x-alternative-to-eventfd for example.Is there any way to run CLion on virtualbox with vagrant ?
You can have CLion installed on macOS and build the project in VM using the full remote feature: https://www.jetbrains.com/help/clion/remote-projects-support.html