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

The wildcard can't be used by the C/C++ compiler recommanded! #13096

Open
WangShiSuiFeng24 opened this issue Dec 28, 2024 · 2 comments
Open

The wildcard can't be used by the C/C++ compiler recommanded! #13096

WangShiSuiFeng24 opened this issue Dec 28, 2024 · 2 comments
Assignees
Labels
Language Service more info needed The issue report is not actionable in its current state

Comments

@WangShiSuiFeng24
Copy link

When I browsed the doc of GCC on Windows,I found that I could modify my tasks.json file to build multiple C++ files by using an argument like "${workspaceFolder}/*.cpp" instead of "${file}". But there is a fatal error when I run my program. The information is that *.cpp is invalid argument.

What is interesting is that my program runs sucessfully if I use another compiler downloaded from https://winlibs.com/.
Image

@WangShiSuiFeng24
Copy link
Author

The recommanded compiler is installed by msys2 with the command line "pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain
"
Image

@ntrogh ntrogh transferred this issue from microsoft/vscode-docs Jan 2, 2025
@browntarik
Copy link
Contributor

browntarik commented Jan 2, 2025

Could you provide more information about this compiler you are using? What is the exact path of "g++" in the command line?

Does this repro when you use the full path to the ucrt version of the compiler (i.e "C:/msys64/ucrt64/bin/g++.exe") in the command line?

Does the issue reproduce without using the cppbuild task and just the command line?

@browntarik browntarik self-assigned this Jan 2, 2025
@browntarik browntarik added more info needed The issue report is not actionable in its current state Language Service labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language Service more info needed The issue report is not actionable in its current state
Projects
Status: No status
Development

No branches or pull requests

2 participants