version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- From: odt@xxxxxxx (Olaf Dietrich)
- Date: Wed, 30 Apr 2008 06:54:29 +0000 (UTC)
I find the following inconsistent(?) behavior of a self-written
Tcl package with the line
Tcl_PkgRequire(interp, "Tcl", TCL_VERSION, 1)
in its C source:
* compiled under Tcl 8.4 everything works well (when the package
is loaded under tclsh84 (patchlevel 8.4.12).
* compiled under Tcl 8.5, I can't load the package; the error
message is:
'version conflict for package "Tcl": have 8.5.1, need exactly 8.5'
I could replave TCL_VERSION by TCL_PATCH_LEVEL, but then I would
have to re-compile after each upgrade to the next patchlevel,
wouldn't I?
Is this different behavior intended? Would you usually use
TCL_VERSION or TCL_PATCH_LEVEL in Tcl_PkgRequire()? How could
I make my Tcl extension be loadable under all patchlevels
of a given Tcl version (but *not* under a different minor
or major version)?
And yes, I know about Tcl_InitStubs() etc. but I would like to
provide an alternative indedpendent of the stubs mechanism.
Olaf
.
- Follow-Ups:
- Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- From: Donald G Porter
- Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- From: Ralf Fassel
- Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- Prev by Date: Re: How to parse this plz tell me!!!
- Next by Date: Re: How to parse this plz tell me!!!
- Previous by thread: MlGUCeDzdqlFmOnpV
- Next by thread: Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- Index(es):
Relevant Pages
|