简体   繁体   中英

Error: The terminal process failed to launch (exit code: -1)

I need help with VS Code errors and it's an issue with running a task with GCC and I've looked all over the inte.net and the only answers don't give instructions, so I'm left with an answer that doesn't tell me where to run the command, why the error happened, and how to avoid having this error occur in the future. Would be very grateful if someone could answer this question with explicit detail on how to fix this. Thanks.

I tried to run simple code, thought I could run the task no issue, got this error instead. Please help.

-Alexander

Sorry for uploading pictures, I had no idea that was prohibited. Anyways, I found a solution which was just to delete the mingw64 and msys64 files from my C:\ disk. I reinstalled them from https://winlibs.com/ and it worked when I built it. So, exit code -1 still confuses me. I think I might have accidentally messed with the files responsible for running C++ code. Again, sorry for uploading pictures.

-Alexander

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM