The need for 'gdi32.lib'

Gisle Vanem gisle.vanem at gmail.com
Mon Jul 27 12:00:14 UTC 2020


Hello lists.

I've a question/doubt about this passage in
NOTES-Windows.txt:

  Linking your application
  ========================

  This section applies to all "native" builds.

  If you link with *static OpenSSL libraries* then you're expected to
  additionally link your application with WS2_32.LIB, *GDI32.LIB*,
  ADVAPI32.LIB, CRYPT32.LIB and USER32.LIB.

------
(* my emphasis)

Using OpenSSL in an all-static link of Wget, I always
note the line in 'wget.map':
Unused libraries:
   f:\ProgramFiler-x86\WindowsKits\Lib\10.0.19041.0\um\x86\gdi32.lib

Grepping through all of my OpenSSL sources, I see only the
above mention and one in 'Configurations\10-main.conf'.

So how/when is 'gdi32.dll' needed? Maybe it was true in the old-days?

-- 
--gv


More information about the openssl-users mailing list