: <i>memory command is not available with TCL_MEM_DEBUG enabled libraries</i> plus 5 other changes
by
.
D 2014-03-11T14:22:28.385
J closer nobody
J icomment After\sadding\s'#define\sTCL_MEM_DEBUG'\si\scompiled\sthe\sprogram\swith\s-ltcl8.4g.\sBut\sthe\soutput\sof\sthe\sprogram\sis\ssame.\r\n\r\n-----------\r\n#include\s<stdio.h>\r\n#include\s<tcl.h>\r\n#include\s<stdio.h>\r\n#define\sTCL_MEM_DEBUG\r\n#include\s<tcl.h>\r\nint\smain()\r\n{\r\n\sint\sx=0;\r\n\sTcl_Interp*\sa;\r\n\sa\s=\s\sTcl_CreateInterp();\r\n\sTcl_Init(a);\r\n\sTcl_InitMemory(a);\r\n\sif\s(a\s==\sNULL)\r\n\sprintf("Interpreter\screation\sFailed\s\\n");\r\n\sx\s=\sTcl_Eval(a,(char\s*)"memory\sinfo");\r\n\sTcl_DeleteInterp(a);\r\n\sprintf("DeleteInterpreter\sx=%d\s\\n",x);\r\n}\r\n----------------------\r\ncompilation\r\n\r\n/opt/Studio11/SUNWspro/bin/CC\s-L/scratch/sakthi/Tcl_8.4.9_debug/lib\s-ltcl8.4g\s-I/scratch/sakthi/Tcl_8.4.9_debug/include\s\sTcl_inter_problem.c\s-o\s\r\n-----------------------\r\noutput\sof\sthe\sprogram:\r\n\r\nTcl_inter_problem\r\nDeleteInterpreter\sx=1\r\n------------------------\r\nTcl8.6\sLibrary\r\n==============\r\nI\scompiled\sthe\sTcl8.6\ssource\scode\swith\sTCL_MEM_DEBUG\sflag\s(attached\sthe\sconfig.log),\sbut\sthere\swas\sno\slibtcl8.6g.so\slibraries.\sI\slinked\sthe\slibrary\swith\smy\sprogram\sand\sfound\sthe\ssame\sresult\swith\s8.6\slibraries.\r\n\r\n/opt/Studio11/SUNWspro/bin/CC\s-L/scratch/sakthi/Tcl_8.6_debug_2/lib\s-ltcl8.6\s-I/scratch/sakthi/Tcl_8.6_debug_2/include\s\sTcl_inter_problem.c\s-o\sTcl_inter_problem\r\n\r\noutput\r\n------\r\nTcl_inter_problem\r\nDeleteInterpreter\sx=1\r\n\r\nCan\syou\splease\shelp\sme\son\sthis?
J login sakthivp
J mimetype text/plain
J status Open
J username sakthivp
K f50ff6f929119c62f9994d974a69be5e8bbf52d0
U sakthivp
Z 803dfb1f52526796b1fdc9ce6ca65b15