help
help copied to clipboard
MSVC2019: unresolved external symbols when linking statically
Using Visual Studio 2019, when I switch to linking the libc statically (/MT) I get the error "unresolved external symbol" (LNK2001) for the following symbols:
__imp_getenv, __imp_close, __imp_wcsncpy, __imp_wcsrev, __imp__wcsrev, __imp_wcsdup, __imp__wcsdup, __imp__beginthreadex, __imp_wcstombs, __imp__wmkdir, __imp__wrmdir, __imp__wchmod, __imp_umask, __imp__umask
Does anyone have experience with linking statically with msvc? Some of these functions seem to be functions in the standard, but most are not.