Hi, I have no experience with VS but was hoping to follow directions and build tk for windows. It built latest tcl, but I get this error when I try to compile tk. can someone advise?
c:\Users\robert\Downloads\tk8.6.8\win>nmake -f
makefile.vc release TCLDIR=c:\use
rs\robert\downloads\tcl868-src\tcl8.6.8 INSTALLDIR=c:\tk86
Microsoft (R) Program Maintenance Utility Version 14.12.25834.0
Copyright (C) Microsoft Corporation. All rights reserved.
*** Using c:\users\robert\downloads\tcl868-src\tcl8.6.8\win\
rules.vc
*** Using c:\users\robert\downloads\tcl868-src\tcl8.6.8\win\nmakehlp.c
*** Compiler has 'Optimizations'
*** Building against Tcl at 'c:\users\robert\downloads\tcl868-src\tcl8.6.8'
*** Intermediate directory will be 'c:\Users\robert\Downloads\tk8.6.8\win\Releas
e_AMD64_VC1912\tk_ThreadedDynamic'
*** Output directory will be 'c:\Users\robert\Downloads\tk8.6.8\win\Release_AMD6
4_VC1912'
*** Installation, if selected, will be in 'c:\tk86'
*** Suffix for binaries will be 't'
*** Compiler version 1912. Target machine is AMD64
*** Host architecture is AMD64
TCLINSTALL=0
*** Dependency rules are not being used.
cl -nologo -c /D_ATL_XP_TARGETING /DUNICODE /D_UNICODE -W3 -wd4311 -wd4
312 -Fpc:\Users\robert\Downloads\tk8.6.8\win\Release_AMD64_VC1912\tk_ThreadedDyn
amic\ -fp:strict -O2 -GS -GL -DBUILD_ttk -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DH
AVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DSUPPORT_CONFIG_EMBEDDED
-DHAVE_UXTHEME_H=1 -Dinline=__inline -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONST
DC_NO_DEPRECATE -DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTDC_HEADERS -DTCL_THREADS=1
-DUSE_THREAD_ALLOC=1 -DNDEBUG -DTCL_CFG_OPTIMIZED -DTCL_CFG_DO64BIT -Zl -DSTATIC
_BUILD -I"c:\users\robert\downloads\tcl868-src\tcl8.6.8\generic" -I"c:\users\rob
ert\downloads\tcl868-src\tcl8.6.8\win" -I"c:\Users\robert\Downloads\tk8.6.8\win\
..\win" -I"c:\Users\robert\Downloads\tk8.6.8\win\..\generic" -I"c:\Users\robert\
Downloads\tk8.6.8\win\..\bitmaps" -I"c:\Users\robert\Downloads\tk8.6.8\win\..\xl
ib" -Foc:\Users\robert\Downloads\tk8.6.8\win\Release_AMD64_VC1912\tk_ThreadedDyn
amic\tkStubLib.obj c:\Users\robert\Downloads\tk8.6.8\win\..\generic\tkStubLib.c
tkStubLib.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20062): e
rror C2059: syntax error: 'constant'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20074): e
rror C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20075): e
rror C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20076): e
rror C2143: syntax error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20084): e
rror C2061: syntax error: identifier 'IMAGE_POLICY_ENTRY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20085): e
rror C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20086): e
rror C2143: syntax error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\processthreadsapi
.h(1126): error C2059: syntax error: 'constant'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\processthreadsapi
.h(1128): error C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\processthreadsapi
.h(1250): error C2059: syntax error: 'constant'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\processthreadsapi
.h(1252): error C2059: syntax error: '}'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017
\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\cl.EXE"' : return code '0x2
'
Stop.
c:\Users\robert\Downloads\tk8.6.8\win>nmake -f
makefile.vc TCLDIR=c:\users\rober
t\downloads\tcl868-src\tcl8.6.8 INSTALLDIR=c:\tk86
Microsoft (R) Program Maintenance Utility Version 14.12.25834.0
Copyright (C) Microsoft Corporation. All rights reserved.
*** Using c:\users\robert\downloads\tcl868-src\tcl8.6.8\win\
rules.vc
*** Using c:\users\robert\downloads\tcl868-src\tcl8.6.8\win\nmakehlp.c
*** Compiler has 'Optimizations'
*** Building against Tcl at 'c:\users\robert\downloads\tcl868-src\tcl8.6.8'
*** Intermediate directory will be 'c:\Users\robert\Downloads\tk8.6.8\win\Releas
e_AMD64_VC1912\tk_ThreadedDynamic'
*** Output directory will be 'c:\Users\robert\Downloads\tk8.6.8\win\Release_AMD6
4_VC1912'
*** Installation, if selected, will be in 'c:\tk86'
*** Suffix for binaries will be 't'
*** Compiler version 1912. Target machine is AMD64
*** Host architecture is AMD64
TCLINSTALL=0
*** Dependency rules are not being used.
cl -nologo -c /D_ATL_XP_TARGETING /DUNICODE /D_UNICODE -W3 -wd4311 -wd4
312 -Fpc:\Users\robert\Downloads\tk8.6.8\win\Release_AMD64_VC1912\tk_ThreadedDyn
amic\ -fp:strict -O2 -GS -GL -DBUILD_ttk -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DH
AVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DSUPPORT_CONFIG_EMBEDDED
-DHAVE_UXTHEME_H=1 -Dinline=__inline -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONST
DC_NO_DEPRECATE -DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTDC_HEADERS -DTCL_THREADS=1
-DUSE_THREAD_ALLOC=1 -DNDEBUG -DTCL_CFG_OPTIMIZED -DTCL_CFG_DO64BIT -Zl -DSTATIC
_BUILD -I"c:\users\robert\downloads\tcl868-src\tcl8.6.8\generic" -I"c:\users\rob
ert\downloads\tcl868-src\tcl8.6.8\win" -I"c:\Users\robert\Downloads\tk8.6.8\win\
..\win" -I"c:\Users\robert\Downloads\tk8.6.8\win\..\generic" -I"c:\Users\robert\
Downloads\tk8.6.8\win\..\bitmaps" -I"c:\Users\robert\Downloads\tk8.6.8\win\..\xl
ib" -Foc:\Users\robert\Downloads\tk8.6.8\win\Release_AMD64_VC1912\tk_ThreadedDyn
amic\tkStubLib.obj c:\Users\robert\Downloads\tk8.6.8\win\..\generic\tkStubLib.c
tkStubLib.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20062): e
rror C2059: syntax error: 'constant'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20074): e
rror C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20075): e
rror C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20076): e
rror C2143: syntax error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20084): e
rror C2061: syntax error: identifier 'IMAGE_POLICY_ENTRY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20085): e
rror C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20086): e
rror C2143: syntax error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\processthreadsapi
.h(1126): error C2059: syntax error: 'constant'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\processthreadsapi
.h(1128): error C2059: syntax error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\processthreadsapi
.h(1250): error C2059: syntax error: 'constant'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\processthreadsapi
.h(1252): error C2059: syntax error: '}'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017
\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\cl.EXE"' : return code '0x2
'
Stop.
c:\Users\robert\Downloads\tk8.6.8\win>