Skip to content

Commit 45ae79b

Browse files
TylerMSFTTylerMSFT
authored andcommitted
fix
1 parent 7fa9150 commit 45ae79b

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

docs/c-runtime-library/reference/vsnprintf-s-vsnprintf-s-vsnprintf-s-l-vsnwprintf-s-vsnwprintf-s-l.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,7 @@ The versions of these functions with the **`_l`** suffix are identical except th
136136
In C++, using these functions is simplified by template overloads; the overloads can infer buffer length automatically (eliminating the need to specify a size argument) and they can automatically replace older, non-secure functions with their newer, secure counterparts. For more information, see [Secure Template Overloads](../../c-runtime-library/secure-template-overloads.md).
137137

138138
> [!Tip]
139-
> If you get an undefined external `_vsnprintf_s` error, ensure that you are linking the appropriate universal CRT library as follows:
140-
>> | Linker switch | Description | Library to link against |
141-
>> |--|--|--|
142-
>> | [/MD](/cpp/build/reference/md-mt-ld-use-run-time-library.md) | multithread library | `ucrt.lib` |
143-
>> | [/MDd](/cpp/build/reference/md-mt-ld-use-run-time-library.md) | multithread debug library | `ucrtd.lib` |
144-
>> | [/MT](/cpp/build/reference/md-mt-ld-use-run-time-library.md) | multithread static library | `libucrt.lib` |
145-
>> | [/MTd](/cpp/build/reference/md-mt-ld-use-run-time-library.md) | multithread debug static library | `libucrtd.lib` |
146-
147-
For more information about upgrade issues, see [Overview of potential upgrade issues](/cpp/porting/overview-of-potential-upgrade-issues-visual-cpp.md).
139+
> If you get an undefined external `_vsnprintf_s` error and are using the Universal C Runtime, add `legacy_stdio_definitions.lib` to the set of libraries to link with. The Universal C Runtime doesn't export this function directly and is instead defined inline in `<stdio.h>`. For more information, see [Overview of potential upgrade issues](/cpp/porting/overview-of-potential-upgrade-issues-visual-cpp.md#libraries).
148140
149141
### Generic-Text Routine Mappings
150142

0 commit comments

Comments
 (0)