-
Notifications
You must be signed in to change notification settings - Fork 309
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
Unable to compile helloworld.cpp example (from Visual Studio Code doc) #358
Comments
Can you compile the helloworld file in ucrt64 environment without vscode? |
I am rather new to Msys2 but after some research here is what I did: I have test 2 command lines (because I have 2 test projects. The second one (c++ helloworld project) So I'm even more confused about the fact that it works when outside the Msys execution environment (UCRT64) I have an error message (only for compiling in C++) Any idea? |
Could you please translate the error message in the screenshot? |
The translation give this:
In a MS DOS command: D:\Project>g++.exe -fdiagnostics-color=always -g D:\Project\cpp\helloworld.cpp -o D:\Project\cpp\helloworld.exe It is like it misses a path in environment variables which should initialized by ucrt64 environment. |
Does adding For example, |
As explained here I already added this folder to my PATH environment variable. The strangest thing is that everything works perfectly with version msys2-x86_64-20230526.exe of Msys2 but not the latest version msys2-x86_64-20241208.exe |
I have done a test to update from msys2-x86_64-20230526.exe to the latest version with the command line: I assume the latest version must use a path to files that is not in the system path. |
Hello,
I have created a post on github for "Vs Code cpptools".
You can find the post here : microsoft/vscode-cpptools#13086
As you can see, I am not able to compile a simple helloworld with the last version on MYSYS2 msys2-x86_64-20241208.exe
Available here (msys2-x86_64-20241208.exe
But I can compile a simple helloworld in c (with gcc)
Is there any minimum requirement with the last version which make the error message appears?
With a previous install program (msys2-x86_64-20230526.exe) I have no problem.
Available here : https://github.com/msys2/msys2-installer/releases/download/2023-05-26/msys2-x86_64-20230526.exe
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: