Clion can't find boost headers when using WSL toolchain
Answered
I'm trying to compile a simple program from the boost examples,
Using this CMakeLists.txt:
cmake_minimum_required(VERSION 3.10)
project(minimal)
set(CMAKE_CXX_STANDARD 17)
find_package(Boost COMPONENTS system REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
add_executable(minimal main.cpp)
target_link_libraries(minimal ${Boost_LIBRARIES})
This will compile and run, but the editor is not able to find the boost headers.
Please sign in to leave a comment.
Hi Sean!
What CLion version do you use?
2019.1.4
It has been upgraded several times from older versions. Should I start with a fresh install?
Please go to Help | Debug Log Settings and enter #com.jetbrains.cidr.cpp.toolchains.WSL there. After that, reproduce an issue, collect logs from Help | Show Log in <File Manager> and send them to clion-support at jetbrains.com. Note that logs might contain private user's information (like file paths and names).
Also please specify the Windows version in the email. Thanks!
Reinstalling clion has fixed this problem.