ClangAutoComplete
ClangAutoComplete copied to clipboard
'iostream' file not found on windows
@JohannesMP @pl-ca I install ClangAutoComplete plugin from Package Control, and configure the include_dirs like this: "include_dirs" : [ ""C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\4.9.2\include"", ""C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\4.9.2\include\c++"", ""C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\4.9.2\include\c++\mingw32"", ""C:\Program Files (x86)\CodeBlocks\MinGW\include"", ""$project_base_path/src"", // "/workspace/$project_name/src", ],
and set "autocomplete_all" to true. But it seem that the plugin cannot find the include file, can you provide some advice?
First of all, I recommend keeping autocomplete_all
to false
because it is a little bit experimental. If you are only looking for structure/class completion it will not be needed.
Secondly, can you add this line to your user settings
"debug" : "true",
and attempt in your code somewhere to trigger auto-completion. A panel should pop up with debugging traces. Can you paste them here?
Hey,
i'm experiencing the exact same issue.
{ "debug" : "true", "include_dirs" : ["\"C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.15063.0\\ucrt\"", ] }
^Thats my user setting for ClangAutoComplete.
c:\users\christ~1\appdata\local\temp\auto_complete_tmp:1:10: fatal error: 'stdio.h' file not found #include <stdio.h> ^~~~~~~~~ 1 error generated.
^Thats the error that pops up everytime.
Furthermore the autocomplete triggers seem not to work for me. ClangAutoComplete only triggers with "cmd+space".