C/C++找不到头文件shell.h #6
-
|
如题,src文件中的c文件都可以正常编译,且makefile中找到的CFLAGS无问题,但vscode的C/C++插件找不到include的shell.h文件 |
Beta Was this translation helpful? Give feedback.
Answered by
HuanCheng65
Mar 17, 2025
Replies: 2 comments 2 replies
-
|
如果是自己写的makefile要额外指定include路径,shell.h和源文件不在同一个目录下 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
需要用 bear 来生成一个 compile_commands.json Ubuntu 的话直接 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
EXLYSHA
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
需要用 bear 来生成一个 compile_commands.json
Ubuntu 的话直接
sudo apt install bear,然后bear -- make就行