Overview
| Artifact ID: | 6d52ca41fa6c2629c040cd55caa0e63f52bc7187 |
|---|---|
| Ticket: | f50ff6f929119c62f9994d974a69be5e8bbf52d0
memory command is not available with TCL_MEM_DEBUG enabled libraries |
| User & Date: | dgp on 2014-03-11 13:53:59 |
Changes
- icomment:
I got curious enough to look. Your error is a simple one. You forgot to #define TCL_MEM_DEBUG when compiling your program. One simple way to correct this is just to add it in your program source code: #include <stdio.h> #define TCL_MEM_DEBUG #include <tcl.h> int main() { int x=0; Tcl_Interp* a; a = Tcl_CreateInterp(); Tcl_Init(a); Tcl_InitMemory(a); if (a == NULL) printf("Interpreter creation Failed \n"); x = Tcl_Eval(a,(char *)"memory info"); Tcl_DeleteInterp(a); printf("DeleteInterpreter x=%d \n",x); } If you need more flexible configuration options than that, I'll leave the use of -DTCL_MEM_DEBUG in your build machinery as an exercise. Now please update your Tcl. If you really, really truly cannot leave Tcl 8.4, at least move to Tcl 8.4.20 so you stop ignoring 9 years of bug fixes. - login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"