You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't believe it but finally, Visual Studio 14 defines snprintf()!
It restricts redefinition, this is added in stdio.h:
#ifdef snprintf
#error: Macro definition of snprintf conflicts with Standard Library function declaration”
#endif
so we get ...\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration [...\lua-cjson\build\cjson.vcxproj errors.
My solution to this was skipping of add_definitions(-Dstrncasecmp=_strnicmp) for MSVC14. Patch follows:
Hey, thank you! After the change, it compiled but I got this: warning: LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
It you have a simple solution to solve (and not hide) this warning, I will take it ;)
Wrong post, I wanted to comment on this > #44
Don't believe it but finally, Visual Studio 14 defines snprintf()!
It restricts redefinition, this is added in stdio.h:
so we get
...\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration [...\lua-cjson\build\cjson.vcxproj
errors.My solution to this was skipping of
add_definitions(-Dstrncasecmp=_strnicmp)
for MSVC14. Patch follows:Keep on coding, Jedzia;)
The text was updated successfully, but these errors were encountered: