Try adding this line to any source file:
#pragma comment(lib, "mincore")
(Or add mincore.lib to linker options).
And check that the function works.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Encountered a problem while compiling, error LNK2019: unable to resolve external symbols __imp_VirtualAlloc2.
But VirtualAlloc is fine.
Try adding this line to any source file:
#pragma comment(lib, "mincore")
(Or add mincore.lib to linker options).
And check that the function works.
Hello @04419928,
Thanks for binging this to our attention.
I can reproduce this issue. I've reported it internally and will update here if there is any progress.
Use mincore.lib instead as @Viorel pointed out.
Thank you!
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.