Overview
| Artifact ID: | 6d47a9719510c0c33c060c612fcff4bfed3a442dda2ccb992c1b80893989a1a1 |
|---|---|
| Ticket: | 844b0ebe515862ee40ecffa2098d3588532fea0a
tclstub : interpreter uses an incompatible stubs mechanism |
| User & Date: | apnadkarni on 2024-11-27 02:50:56 |
Changes
- icomment:
Nico, The error occurs because the *actual* C function `Tcl_InitStubs` has changed in Tcl 9. It now takes 4 parameters, not 3 as in 8.6. As *documented* for Tcl 9, the function still has only 3 parameters but [these](https://core.tcl-lang.org/tcl/file?ci=tip&name=generic/tcl.h&ln=2325-2363) macros in tcl.h redefine to a call with 4 parameters with the fourth hardcoded as TCL_STUB_MAGIC. So you need to change [this line](https://github.com/nico-robert/tclnimtest/blob/7790fd10633f02cc519af1bead59e7405db15d0d/src/tcl9pix/tcl9pix.nim#L12) in your Nim definition accordingly (passing in TCL_STUB_MAGIC as the fourth parameter). I learnt something new too :-) /Ashok
- login: "apnadkarni"
- mimetype: "text/x-markdown"