reichmanjoe@gmail.com [hercules-390]
2017-02-27 14:08:46 UTC
Can someone tell me where the #define for
_WINSOCK_DEPRECATED_NO_WARNINGS
goes I put it in both the preprocessor option and as a #define first thing in w32util.c
logger.c
1> logmsg.c
1> memrchr.c
1> parser.c
1> pttrace.c
1> version.c
1> hsocket.c
1> w32util.c
1>w32util.c(15): error C2220: warning treated as error - no 'object' file generated
1>w32util.c(15): warning C4603: '_WINSOCK_DEPRECATED_NO_WARNINGS' : macro is not defined or definition is different after precompiled header use
1> Add macro to precompiled header instead of defining here
1> w32util.c(16) : use of precompiled header
1>w32util.c(1236): warning C4996: 'GetVersionExA': was declared deprecated
1> C:\Program Files (x86)\Windows Kits\8.1\include\um\sysinfoapi.h(433) : see declaration of 'GetVersionExA'
1>w32util.c(1557): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> C:\Program Files (x86)\Windows Kits\8.1\include\um\winsock2.h(2238) : see declaration of 'gethostbyname'
1>w32util.c(1620): warning C4996: 'WSASocketA': Use WSASocketW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> C:\Program Files (x86)\Windows Kits\8.1\include\um\winsock2.h(3457) : see declaration of 'WSASocketA'
1>w32util.c(1714): warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> C:\Program Files (x86)\Windows Kits\8.1\include\um\winsock2.h(1850) : see declaration of 'inet_addr'
1>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\x86_amd64\cl.EXE"' : return code '0x2'
1> Stop.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command "makefile.bat DEBUG-X64 makefile.msvc 32 -a" exited with code 2.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped =
_WINSOCK_DEPRECATED_NO_WARNINGS
goes I put it in both the preprocessor option and as a #define first thing in w32util.c
logger.c
1> logmsg.c
1> memrchr.c
1> parser.c
1> pttrace.c
1> version.c
1> hsocket.c
1> w32util.c
1>w32util.c(15): error C2220: warning treated as error - no 'object' file generated
1>w32util.c(15): warning C4603: '_WINSOCK_DEPRECATED_NO_WARNINGS' : macro is not defined or definition is different after precompiled header use
1> Add macro to precompiled header instead of defining here
1> w32util.c(16) : use of precompiled header
1>w32util.c(1236): warning C4996: 'GetVersionExA': was declared deprecated
1> C:\Program Files (x86)\Windows Kits\8.1\include\um\sysinfoapi.h(433) : see declaration of 'GetVersionExA'
1>w32util.c(1557): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> C:\Program Files (x86)\Windows Kits\8.1\include\um\winsock2.h(2238) : see declaration of 'gethostbyname'
1>w32util.c(1620): warning C4996: 'WSASocketA': Use WSASocketW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> C:\Program Files (x86)\Windows Kits\8.1\include\um\winsock2.h(3457) : see declaration of 'WSASocketA'
1>w32util.c(1714): warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> C:\Program Files (x86)\Windows Kits\8.1\include\um\winsock2.h(1850) : see declaration of 'inet_addr'
1>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\x86_amd64\cl.EXE"' : return code '0x2'
1> Stop.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command "makefile.bat DEBUG-X64 makefile.msvc 32 -a" exited with code 2.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped =