Skip to content

Using GCC with MinGW Tutorial from https://code.visualstudio.com/docs/cpp/config-mingw #13519

Open
@wermelinger-stefan

Description

@wermelinger-stefan

Hallo

I tried to run the Totorial as on the Website.
I wonder if anyone can tell me what went wrong.

When i try to ran the "helloworld.cpp" it kind of does something but the predicted Output "Hello C++ ..." does not come out.
I get instead:
PS D:\VSCodeCTest\helloworld> & 'c:\Users\werme.vscode\extensions\ms-vscode.cpptools-1.24.5-win32-x64\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-pwvtuybk.efh' '--stdout=Microsoft-MIEngine-Out-fxxwglkc.ecy' '--stderr=Microsoft-MIEngine-Error-i0j22iyb.xlm' '--pid=Microsoft-MIEngine-Pid-c0kdexmb.aht' '--dbgExe=C:\msys64\ucrt64\bin\gdb.exe' '--interpreter=mi'

Also the Debuger does not start. There i get in the debugconsole:
=thread-group-added,id="i1"
GNU gdb (GDB) 15.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
[New Thread 9748.0x4fe0]
[New Thread 9748.0xc58]
[New Thread 9748.0x708]
[Thread 9748.0xc58 exited with code 3221225785]
[Thread 9748.0x708 exited with code 3221225785]
[Thread 9748.0x4fe0 exited with code 3221225785]
ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". During startup program exited with code 0xc0000139.
The program 'D:\VSCodeCTest\helloworld\helloworld.exe' has exited with code 0 (0x00000000).


Where the Terminal says:
PS D:\VSCodeCTest\helloworld> & 'c:\Users\werme.vscode\extensions\ms-vscode.cpptools-1.24.5-win32-x64\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-rtvx0ij4.whs' '--stdout=Microsoft-MIEngine-Out-20o5sims.3o2' '--stderr=Microsoft-MIEngine-Error-r55slmkn.ma3' '--pid=Microsoft-MIEngine-Pid-an52j2dy.zxc' '--dbgExe=C:\msys64\ucrt64\bin\gdb.exe' '--interpreter=mi'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions