Skip to content

Unable to run files build with debugging information (-g option) with mingw on windows 11 after upgrading to version 2.24.0 #6139

@rapte

Description

@rapte

I am running windows 11. I am using the TDM-GCC-64 compiler. After upgrading to the latest version 2.24.0, I am unable to run programs which are built with debugging information (-g option) while getting a "Access is denied" message. Binaries built without this option continue to run perfectly.

A very simple example

#include <SDL2\SDL.h>

int main(int argc, char* argv[]) {
    SDL_Init(SDL_INIT_VIDEO);
    SDL_Quit();
    return 0;
}
> gcc -g minimum-sdl2.c -lmingw32 -lsdl2main -lSDL2
> a.exe
Access is denied.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions