|
2015-05-26
| ||
| 16:07 | • Closed ticket [110b3e54dd]: Windows Tcl 8.5.18 reports version as 8.5.13 plu... artifact: 70c9eea0e3 user: sebres | |
| 15:43 | • Open ticket [110b3e54dd]. artifact: b5dffe2e40 user: sebres | |
| 15:30 | • Closed ticket [110b3e54dd]. artifact: d6cddc3ab6 user: jan.nijtmans | |
| 15:11 | • New ticket [110b3e54dd]. artifact: bc66e1162b user: DrEdHepler | |
Windows Tcl 8.5.18 reports version as 8.5.13
Closed / Invalid110b3e54dd168611ab2cd25e3bbaa0b94d9f7be2Created 12 years agoUpdated 12 years ago
Descriptionplain2015-05-26 15:11:30
I just downloaded Tcl 8.5.18 sources and compiled it on Windows 7 using minGW. I compiled a C application using the generated Tcl libraries. The application calls Tcl_Init which searches for and finds init.tcl init.tcl has the statement: "package require -exact Tcl 8.5.18" and the application fails due to 8.5.13 being reported by Tcl.
jan.nijtmansplain2015-05-26 15:30:43
no-where in Tcl is the version (8.5.13) hardcoded in the sources. What probably happened is that you have an older version of Tcl installed on your machine, and the $PATH variable contains the directory where the older tcl85.dll is found before the one you compiled. The applications just finds the older dll. Solution: copy the tcl86.dll you built to the same directory as where your application is. This is - for sure - not a bug in Tcl, but a bug in your environment. That's what Tcl is is telling you (as it should)
sebresplain2015-05-26 15:43:32
I believe your application uses "old" version of init.tcl, will be found while calling Tcl_Init... Paths to search init.tcl are [app]/lib/tcl8.5, $::env(TCL_LIBRARY), etc. Simple way to test this case with init.tcl would be to copy tclsh.exe to your app directory (where is located your app.exe) and after start it and puts $::errorInfo to track an error. In other words, either your tcl85.dll does not usable with init.tcl will be found (control PATH etc.), or in your environment is defined a variable TCL_LIBRARY which points to library from another installation of tcl, so reset it before start your app or set it in app self.
sebres Closed ticket [110b3e54dd].
[History diff]2015-05-26 16:07:41
Log in (anonymous is fine) to add a comment.