SergiusTheBest / FindWDK

CMake module for building drivers with Windows Development Kit (WDK)
BSD 3-Clause "New" or "Revised" License
251 stars 53 forks source link

error LNK2019: unresolved external symbol __imp___stdio_common_vsprintf referenced in function _vsnprintf_l #12

Closed SergiusTheBest closed 4 years ago

SergiusTheBest commented 4 years ago

@DiskGetor Did you manage to resolve the issue?

hello again. target_link_libraries(hvm WDK::NTSTRSAFE) do not work,can you help me? thank you. test code:

include

char src[777] = "i am src"; char dst[777] = {0}; RtlStringCbPrintfA(dst, BUFSIZ, "%s", src); DbgPrint(dst);

Originally posted by @DiskGetor in https://github.com/SergiusTheBest/FindWDK/issues/11#issuecomment-627271500

SergiusTheBest commented 4 years ago

@DiskGetor Should be fixed now. Please, check it.