When using the makefile.vc in the win directory to build Tcl or the thread and itcl packages, there is a check to see if the build is configured to build with Microsoft Visual Studio/C. This check is not complete (e.g fails when using Visual Studio Express 10 and SDK 7.1 to build 64 bit). The attached patches remove the check. When you're using the makeifle.vc to build Tcl/Itcl/Thread, you'll need nmake, which is only available when the VC build environment is configured.
Jos.
Remove compiler check from Tcl makefile.vc
Remove compiler check from Thread makefile.vc
I have doubts about this one: If the 64-bit compiler has
different macro's, shouldn't that be tested for, in
stead of simply removing the check?
Pat, you seem to be the expert in this.
Hi Jan,
While I agree on that, I could not see what would be a good candidate to add in the VC-express + SDK setup. These are available:
INCLUDE (has a list of VC include paths)
LIBS or LIBPATH (list of VC lib paths)
WindowsSDKDir
So, how about adding
&& !defined(WindowsSDKDir)
to the end of the existing check.
Does that work, or are additional
changes needed?
That should do it. Same change needed in itcl and thread.
I'll prepare a patch after testing.
This should be added to the test in the different makefile.vc files:
&& !defined(WINDOWSSDKDIR)
(note the upper case). Want me to make a patch for this change or if the line above sufficient?
Fixed in Tcl and Tk (all open branches), thread, tdbc and itcl.
Jos, please veryfy whatever you can (I don't have
a 64-bit build environment)