Still no luck.<br>I made sure that i am using the correct version of tcl/tk and tested the compilation of tkinter with python27 and it worked.<br>With pypy, i still have to define WITH_THREAD (it&#39;s defined in pyconfig.h for python27 but not in pypy-1.7); I also had to modify the setup.py since i used tcl/tk 8.5 (and the libs do not have the dot in windows : tcl85 and tk85)<br>
Now I get missing libs error from the linker :<br><br>LINK : fatal error LNK1181: cannot open input file &#39;X11.lib&#39;<br>LINK : fatal error LNK1181: cannot open input file &#39;python27.lib&#39;<br><br>if i try to remove X11 from the librairies in setup.py and add a path to python27.lib, i get a lot of unresolved external symbols<br>
<br>Thanks<br>Arnaud<br><br><div class="gmail_quote">2012/1/17 Amaury Forgeot d&#39;Arc <span dir="ltr">&lt;<a href="mailto:amauryfa@gmail.com">amauryfa@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br><div class="gmail_quote"><div class="im">2012/1/17 Arnaud F <span dir="ltr">&lt;<a href="mailto:pachalmars@gmail.com" target="_blank">pachalmars@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="text-align:left">When trying to build tkinter from source, i get the following errors :</div></blockquote></div><div>  <span style="text-align:left">[...]</span></div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="text-align:left">src/_tkinter.c(3133) : error C2065: &#39;tcl_lock&#39; : undeclared identifier</div></blockquote></div></div><br>Which version of tcl are you using? Are you sure it was compiled with threads?<div>
There is a comment about this at the beginning of _tkinter.c:</div>
<div><div>/* If Tcl is compiled for threads, we must also define TCL_THREAD. We define</div><div>   it always; if Tcl is not threaded, the thread functions in</div><div>   Tcl are empty.  */</div><div>But compilation with a thread-less TCL is probably not so well supported.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div>-- <br>Amaury Forgeot d&#39;Arc<br>
</font></span></div>
</blockquote></div><br>