Share via

Error code -1073741819 when executing a file in cmd/vscode

浩然 王 0 Reputation points
2023-06-27T03:58:09.66+00:00

I just installed MSYS2 to compile cpp file on my laptop. But when I tried the basic HelloWorld code both Windows Terminal and terminal in VS Code showed no result. However on Azure Cloud Shell, the same codes run smoothly.

I typed in

echo %ERRORLEVEL%

to see what's wrong, Windows Terminal returned -1054759839.
Is there any set-up mistake?

Community Center | Not monitored
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,201 Reputation points Microsoft External Staff
    2023-06-27T06:58:32.5466667+00:00

    Hi @浩然 王, 

    Welcome to Microsoft Q&A! 

    Your issue is related to Windows Terminal or Visual Studio Code. Please report it in dedicated Windows Terminal and Visual Studio Code forum. 

    Thanks for your understanding! 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.