如何让vsmake生成的工程的支持xmake的c_cpp_properties.json? #3854
Unanswered
luciouskami
asked this question in
Q&A
Replies: 2 comments 11 replies
-
?? vsxmake 不是生成的 vs 工程么。。跟 c_cpp_properties.json 有什么关系,那个不是 vscode 的配置么?两者完全不相关吧 |
Beta Was this translation helpful? Give feedback.
0 replies
-
可能我没表达清楚,我的意思是生成vs工程的时候工具链的搜索路径没包含进去,导致智能感知失效了,c_cpp_properties只是一个举例 |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
如题,xmake下配置无错误(wasm32),能顺利编译过,但是生成的工程似乎没有导入(或转换)c_cpp_properties.json,,导致工具链中的一些默认的头文件搜素路径没加进去,然后智能感知就找不到了,比如 string、time.h这样的头文件。visualstudio目前应该是不支持c_cpp_properties.json的,请问有什么解决方案吗?
还有一个问题,我看到在生成的vs工程中_WIN32的宏是打开的,但是wasm32的目标平台是wasm,如果定义了_WIN32就可能会错误的引入WindowsSDK的头文件,这部分应该怎么处理呢?此外,wasm32的工具链是clang,"attribute((used)) "在当前生成的工程中被视为非法关键字,这个有办法解决吗?
Beta Was this translation helpful? Give feedback.
All reactions