I am getting the following Linker error after finally getting things to compile for a project converted from Visual Studio 2005 to Visual Studio 2015 / Intel Parallel Studio XE 2017 (on Windows 10).
libmmt.lib(libm_error.obj) : error LNK2019: unresolved external symbol __snprintf referenced in function _write_message
I've read through similar issues on this forum:
I've tried to verify consistency between my Fortran and C/C++ projects. All my C/C++ projects have "Runtime Library" set to "Multi-threaded Debug". All of my Fortran projects have "Runtime Library" set to "Debug Multithreaded". In the other posts, how did everyone know that the users had mixed static and dynamic libraries? I have yet to investigate external libraries referenced.
I've also added the IFORT_COMPILER17 paths to include/library directory lists.
Does anyone have any other ideas?
In the Linker > General property page, set Show Progress to “Show all progress messages”. The build log will then show every library searched and which symbols were found in each one. This can help you identify mixtures of static and DLL libraries. Libmmt.lib is a static library, and if the project is linking to DLLs that may not work.
Did you recompile all the sources? Easiest thing may be to delete the whole Debug or Release folder and rebuild the project.