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

第三方依赖的头文件查找路径 #43

Closed
compilelife opened this issue Aug 27, 2020 · 4 comments
Closed

第三方依赖的头文件查找路径 #43

compilelife opened this issue Aug 27, 2020 · 4 comments

Comments

@compilelife
Copy link

你在什么场景下需要该功能?

require了第三方库,include第三方头文件,但是vscode提示找不到(编译是没问题)

描述可能的解决方案

是不是可以通过解析第三方库的include路径,然后自动添加到vscode的c++ include path里?

描述你认为的候选方案

其他信息

@waruqi
Copy link
Member

waruqi commented Aug 27, 2020

看下 #40

@DubingXiang
Copy link

你好,请问如果采用了 add_requires的方式 来使用远程包,应该怎样 include 第三方库的头文件呢,因为第三方库的路径在 /home/username/.xmake/packages 下 难道要 add_includedirs(“/home/username/.xmake/packages ”)吗?应该有别的方法吧,没有找到相关的解决方法,或者说只能安装在 /use/local/lib 下吗?

@waruqi
Copy link
Member

waruqi commented Jun 26, 2022

不用管 啥也不用干 配了 intelligense 原本就支持

@imLeonardo
Copy link

你好,我也遇到同样得问题
add_requires("spdlog")
target(...)
add_packages("spdlog")
编译时提示 fatal error C1083: 无法打开包括文件: “spdlog/spdlog.h”: No such file or directory

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

4 participants