在 Visual Studio 2017 中构建 TclTk 时出错 [英] Error when building TclTk in Visual Studio 2017

查看:45
本文介绍了在 Visual Studio 2017 中构建 TclTk 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用 Visual Studio 2017 (15.5.x) 编译 Tcl/Tk.我可以编译2010年到2013年的代码.

使用 msvc 2017 编译 tkStubLib.c 文件时出现以下错误

C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winnt.h(20062):错误 C2059:语法错误:'常量'

我尝试了 TclTk 8.6.0 和 8.6.8

有人可以帮我吗?

解决方案

vcvarsall x64 10.0.15063.0

设置 64 位构建环境(x86 用于 32 位).

参考:http://wiki.tcl.tk/54819

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?

解决方案

vcvarsall x64 10.0.15063.0 

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

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

这篇关于在 Visual Studio 2017 中构建 TclTk 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆