Clion can't find boost headers when using WSL toolchain

已回答

I'm trying to compile a simple program from the boost examples,

https://www.boost.org/doc/libs/1_70_0/libs/geometry/doc/html/geometry/spatial_indexes/rtree_examples/index_of_polygons_stored_in_vector.html

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.

 

0

Hi Sean! 

What CLion version do you use?

0

2019.1.4

It has been upgraded several times from older versions.  Should I start with a fresh install?

0

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!

0

Reinstalling clion has fixed this problem.

0

请先登录再写评论。