Skip to content

Use lowercase dbghelp include for MinGW#1671

Open
SethTenenbaum wants to merge 1 commit into
juce-framework:masterfrom
SethTenenbaum:codex/mingw-dbghelp-header-case
Open

Use lowercase dbghelp include for MinGW#1671
SethTenenbaum wants to merge 1 commit into
juce-framework:masterfrom
SethTenenbaum:codex/mingw-dbghelp-header-case

Conversation

@SethTenenbaum

Copy link
Copy Markdown

Summary

Change the Windows DbgHelp include in juce_core from <Dbghelp.h> to <dbghelp.h>.

Windows/MSVC header lookup is case-insensitive, but MinGW cross-compiles on case-sensitive filesystems provide this header as lowercase dbghelp.h. This mirrors the existing lowercase uiautomation.h include used elsewhere in JUCE.

Verification

On Debian Trixie with g++-mingw-w64-x86-64 and mingw-w64-x86-64-dev:

  • #include <Dbghelp.h> fails with fatal error: Dbghelp.h: No such file or directory
  • #include <dbghelp.h> compiles successfully
  • A small test including <windows.h>, <dbghelp.h>, and <uiautomation.h> compiles successfully with x86_64-w64-mingw32-g++-posix -std=c++17

@SethTenenbaum SethTenenbaum force-pushed the codex/mingw-dbghelp-header-case branch from 8b2850a to 505c63d Compare June 12, 2026 16:20
@alexsears

Copy link
Copy Markdown

Closing stale Codex branch PR during backlog cleanup. Branch/commits are retained if this needs to be reopened.

@SethTenenbaum

Copy link
Copy Markdown
Author

Ok, it was cross compiling, ran into an error, made that change and so I figured I would report it. If it's unhelpful, please disregard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants