<i>tclstub : interpreter uses an incompatible stubs mechanism</i> status still Closed with 5 other changes
by
.
D 2024-12-11T12:44:22.935
J closedate 2460656.03082101
J closer anonymous
J icomment Ashok,\s\r\n\r\n>\sThe\serror\soccurs\sbecause\sthe\s*actual*\sC\sfunction\s`Tcl_InitStubs`\shas\schanged\sin\sTcl\s9.\sIt\snow\stakes\s4\sparameters,\snot\s3\sas\sin\s8.6.\r\n\r\nI\sused\sthis\svalue\sto\sdefine\s:\r\n```\r\nTCL_STUB_MAGIC\s((int)\s0xFCA3BACB\s+\s(int)\ssizeof(void\s*))\r\n```\r\n\r\nUnfortunately\sfor\sme\sthis\sstill\sdoesn't\swork,\ssame\serror\s:\s_"interpreter\suses\san\sincompatible\sstubs\smechanism"_,\swhere\sI'm\ssurprised\sis\sthat\sI\sdidn't\shave\sa\s'segmentation\sfault'\srather\sthan\sthe\susual\serror.\s\r\n\r\nUnless\s_tclstub.lib_\sautomatically\sdefines\sthis\spragma\s:\s__USE_TCL_STUBS__\r\nI\sthink\sI'm\sin\sthat\s[case](https://core.tcl-lang.org/tcl/file?ci=tip&name=generic/tcl.h&ln=2362-2366)\sin\stcl.h.\s\s\s\r\nIf\sI'm\sright\sI\send\sup\swith\salmost\sthe\ssame\sconfiguration\sdefined\sin\sTcl8.X\swhich\sis\sdefined\slike\sthis\sin\stcl8.X.h\s:\s\s\r\n\s\r\n```\r\n#ifndef\sUSE_TCL_STUBS\r\n#define\sTcl_InitStubs(interp,\sversion,\sexact)\s\\\r\n\s\s\s\sTcl_PkgInitStubsCheck(interp,\sversion,\sexact)\r\n#endif\r\n```\s\s\s\r\n\r\nAs\syou\swell\sknow,\sI\sdon't\sknow\s__C__\sand\sI'm\slearning\sthe\s__Nim__\slanguage.\s\s\s\r\nI'll\stry\sto\sget\sin\scontact\swith\sa\sNim\sexpert\sto\smake\ssure\sI've\sdefined\sthe\sright\sthings.\s\s\s\r\n\r\nIn\sany\scase,\sthank\syou\sfor\sgoing\soutside\sthe\sscope\sof\smy\squestion\sand\slooking\sinto\smy\scode.\s\r\n\r\nThanks\s(again)
J login anonymous
J mimetype text/x-markdown
K 844b0ebe515862ee40ecffa2098d3588532fea0a
U anonymous
Z 172a3096a35da353323a714c5d83a031