Search code examples
visual-studio-2017tcl

Error when building TclTk in Visual Studio 2017


i have troubles to compile Tcl/Tk with Visual Studio 2017 (15.5.x). I can compile the code from 2010 to 2013.

I get the folowing error when compiling the tkStubLib.c file with msvc 2017

C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20062): error C2059: syntax error: 'constant'

I tried TclTk 8.6.0 and 8.6.8

Does anybody can help me?


Solution

  • vcvarsall x64 10.0.15063.0 
    

    to set up a 64-bit build environment (x86 for 32-bit).

    Reference: http://wiki.tcl.tk/54819