Unable to build GDB on Windows

Christian Biesinger cbiesinger@google.com
Mon Sep 28 15:17:49 GMT 2020

On Mon, Sep 28, 2020 at 4:44 PM Eli Zaretskii via Gdb
<gdb@sourceware.org> wrote:
> Btw, looking at Gnulib's getrandom.c, my conclusion is that a GDB
> built on Windows 7 and later will be unable to run on older versions
> of Windows, because it will have a static dependency on bcrypt.dll and
> the BCryptGenRandom function from that DLL.  IOW, such a GDB will
> refuse to run on older Windows systems.
> OTOH, if you build on Windows before 7, the produced binary will be
> able to run on newer versions of Windows by dynamically loading
> bcrypt.dll (when available) at run time, and using a fallback
> otherwise.

Hmm that sounds odd, usually the way the Windows SDK works is that
this only depends on what you #define, not what you build on
(especially _WIN32_WINNT)


More information about the Gdb mailing list