Skip to content

Unable to compile helloworld.cpp example from Visual Studio Code doc #13086

Answered by slolo2000
slolo2000 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bobbrow,

I have used Dependency and I have found the origin of the problem with the dll.

I simply put on the top the D:\Dvpt\msys64\ucrt64\bin folder in Local Environment variables.

Now I can execute the following command without problem:
gcc.exe -std=c++98 -Wp,-v -E -dM -x c++ nul
gcc.exe -std=c++17 -Wp,-v -E -dM -x c++ nul

After that, I had again a small problem with the extension:

And it was due to the following entry in System Environment Variables:

I renamed it for a test and all works perfectly now!

No more error messages either like:
[1/15/2025, 8:35:17 PM] Unable to resolve configuration with compilerPath "D:\Dvpt\msys64\ucrt64\bin\g++.exe". Using "D:\Dvpt\msys64\ucrt64\b…

Replies: 6 comments 17 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@slolo2000
Comment options

@bobbrow
Comment options

Comment options

You must be logged in to vote
14 replies
@bobbrow
Comment options

@slolo2000
Comment options

@bobbrow
Comment options

@slolo2000
Comment options

Answer selected by slolo2000
@bobbrow
Comment options

@UnmeiX
Comment options

Comment options

You must be logged in to vote
1 reply
@bobbrow
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants