Skip to content

Commit

Permalink
win32, msvc: fix missing linking against Bcrypt.lib
Browse files Browse the repository at this point in the history
Fixes this link error:

dict.obj : error LNK2019: unresolved external symbol BCryptGenRandom referenced in function xmlInitRandom

Commit 2e9e758 (dict: Get random seed
from system PRNG, 2023-12-24) updated cmake, but not nmake, correct
this.
  • Loading branch information
vmiklos committed Jun 14, 2024
1 parent 1aa37db commit 7e83a08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions win32/Makefile.msvc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ LIBS = $(LIBS) pthreadVC.lib
!if "$(WITH_MODULES)" == "1"
LIBS = $(LIBS) kernel32.lib
!endif
LIBS = $(LIBS) Bcrypt.lib

# The archiver and its options.
AR = lib.exe
Expand Down

0 comments on commit 7e83a08

Please # to comment.