编译Tcl / tk时出错

时间:2015-01-22 03:20:17

标签: c++ tcl tk

我试图为Windows 7构建tcl / tk 8.5.17。我确实成功构建了tcl。但是,当我尝试构建tk时,错误发生如下,

设置使用Microsoft Visual Studio 2010 x86工具的环境。

C:\Program Files\Microsoft Visual Studio 10.0\VC>cd C:\Program Files\Tcl\tk8.5.1
7\win

C:\Program Files\Tcl\tk8.5.17\win>nmake -fmakefile.vc TCLDIR=C:\Program Files\Tc
l\tcl8.5.17

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

    Identifier    REG_SZ    x86 Family 6 Model 23 Stepping 10
===============================================================================
*** Compiler has 'Optimizations'
*** Compiler does not have 'Pentium 0x0f fix'
*** Linker does not have 'Win98 alignment problem'
rules.vc(522) : fatal error U1050:
Failed to find tcl.h.  The TCLDIR macro does not appear correct.
Stop.

C:\Program Files\Tcl\tk8.5.17\win>

如何解决? 谢谢

1 个答案:

答案 0 :(得分:0)

为每个tcl和tk创建新文件夹作为安装目录。解决了我的确切问题。