microsoft / microsoft/vscode-cpptools
Basic Include files error
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Discussed in https://github.com/microsoft/vscode-cpptools/discussions/12153
Originally posted by naman0411 March 28, 2024
Hi, I recently redownloaded c++ 13.1 using msys2 on my computer and know vs code is giving me errors in basic include lines like #include .
I added the appropriate path variables - "C:\msys64\ucrt64\bin" and tried changing the intellisense configurations as mentioned in various places online to no avail.
g++ -o demo demo.cpp does not create any file.
g++ -v -o demo demo.cpp has the following output.
As seen the g++ is not doing any search for #include files.
What should I do?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked discussion and the reported g++ -v -o demo demo.cpp output; the issue mentions demo.cpp, MSYS2, and VS Code IntelliSense configuration but no repository file or test. Determine whether the missing include search is caused by the compiler setup or the extension, and consider the issue resolved only when #include <iostream> is recognized and the g++ -o demo demo.cpp command produces the executable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100