I made it work with the spinhawk tag 3.12. But it takes editing a few files.
But you are willing to get the latest code, which has only a few changes from the 3.12 tag,
it works much easier.
If you pull down the latest from here:
https://github.com/rbowler/spinhawk.git https://github.com/rbowler/spinhawk.git
Use a VS2015 x64 Native Tools command prompt.
Copy makefile.msvc to makefile
Copy in Win32.mak from your SDK.
On my system it it's found in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include
Edit msvc.makefile.includes\HERC_FLAGS.msvc
Add /wd4091 to the cflags= line so it looks like this:
cflags = $(cflags) /WX /wd4091
Run nmake
For me then the build "just works".
Note, I didn't test Hercules beyond just firing it up.
-Bill
---In hercules-***@yahoogroups.com, <***@...> wrote :
With my new machine I purchased VS 2015 pro ( If you can tell me how to downgrade I will)
I tried putting this #define in w32util.c
_WINSOCK_DEPRECATED_NO_WARNINGS
and in the preprocessor definition and I still get warnings below is there some .h I should put this in ?
Thanks
1>------ Rebuild All started: Project: Hercules_VS2012, Configuration: Debug x64 ------
1> Visual Studio 2013 detected
1> Hercules version number is \"3.12.0\" (3.12.0.0)
1> Makefile will assume VS12 or VS2013 Express (MSVC version 18)
1> Target processor type is AMD64
1>
1> VERSION = \"3.12.0\" (3.12.0.0)
1>
1> ZLIB support will not be generated
1> BZIP2 support will not be generated
1> PCRE support will not be generated
1> build_pch.c
1> dfp.c
1> ieee.c
1> pfpo.c
1> Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
1>
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1>
1> hsys.c
1> Creating library msvc.debug.AMD64.obj\hsys.lib and object msvc.debug.AMD64.obj\hsys.exp
1> getopt.c
1> codepage.c
1> fthreads.c
1> hdl.c
1> hostinfo.c
1> hscutl.c
1> hscutl2.c
1> 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(1236): error C2220: warning treated as error - no 'object' file generated
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 ==========