文章目录
- 1 头文件include路径查找报错
- 参考
1 头文件include路径查找报错
找到conan_toolchain.cmake
中 INCLUDE_PATH
list(PREPEND CMAKE_INCLUDE_PATH "/Users/hanliqiang/.conan2/p/b/fmte8c4f7a755477/p/include")
生成C++编译配置 Ctrl+Shift+P
中选择C++ Edit Configurations
生成 .vscode/c_cpp_properties.json
文件,并在includePath
中添加路径
{"configurations": [{"name": "Mac","includePath": ["${workspaceFolder}/**",// 添加头文件搜索路径"/Users/hanliqiang/.conan2/p/b/fmte8c4f7a755477/p/include"],"defines": [],"compilerPath": "/usr/bin/clang","cStandard": "c17","cppStandard": "c++17","intelliSenseMode": "macos-clang-arm64"}],"version": 4
}