C++: Unresolved external symbol _sprintf and _sscanf in Visual Studio 2015

Add the following library to the linker input files:

legacy_stdio_definitions.lib

VS 2015 now uses inline definitions that call internal functions for many of the stdio.h functions. If an object file (or library member) depends on one of those functions, then the legacy_stdio_definitions.lib provides an externally linkable version of the function that can be linked to.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top