Closed
Description
Version
v18.12.1
Platform
Microsoft Windows NT 10.0.22000.0 x64
Subsystem
No response
What steps will reproduce the bug?
- Run
node-gyp rebuild
on Windows
md5.c:
#include <openssl/md5.h>
void hash(void)
{
MD5_CTX c;
MD5_Init(&c);
MD5_Update(&c, NULL, 0);
MD5_Final(NULL, &c);
}
binding.gyp:
{ 'targets': [{ 'target_name': 'md5', 'sources': ['md5.c'] }] }
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
Builds successfully as it does on other platforms (and Node.js 16 on Windows).
What do you see instead?
md5.obj : error LNK2001: unresolved external symbol MD5_Update [C:\Users\User\Development\md5\build\md5.vcxproj]
md5.obj : error LNK2001: unresolved external symbol MD5_Final [C:\Users\User\Development\md5\build\md5.vcxproj]
md5.obj : error LNK2001: unresolved external symbol MD5_Init [C:\Users\User\Development\md5\build\md5.vcxproj]
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels