I am new to freertos and I am trying to test the Network and FAT demo. I am trying to compile it with Microsoft Visual Studio 2015. When I try to compile It I get the following errors on the stdio.h file:
Warning C4005 ‘vsnprintf’: Macro redefinition
Error C1189 #error: Macro definition of vsnprintf conflicts with Standard Library function declaration RTOSDemo
Yes I had the same when moving from VS2010 to VS2015. In earlier versions, snprintf() was considered unsafe and and alternative (_snprintf) had to be used.
Has finally anybody solve successfully this issue?
I am not sure in which file need to be included the previous solution. In stdio.h file?
Thanks for sharing.
It is not clear to me why you think the problem has not been solved, or
why it is a problem at all - it just depends on which version of Visual
Studio you are using.
Did you try grep’ing the directory structure for where the function
names snprintf and _snprintf already occur in a macro? From the thread
it sound like you just need to remove or update the macro mapping.