Skip to content

Cannot find 'snprintf' on MSVC2015

Win10, CMake 3.6.0, MSVC2015 Update 3. Create CMakeLists.txt as follows:

include(CheckFunctionExists)
check_function_exists("snprintf" HAVE_SNPRINTF)

It reports not found, but _MSC_VER == 1900 has snprintf() (in file c:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\stdio.h:1932).

-- Looking for snprintf
-- Looking for snprintf - not found

You should probably rework CheckFunctionExists (cmake or C code).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information