I get this error when building VTK with tcl wrapping, using the latest downloadable tcl/tk. (ActiveState ActiveTcl 8.6.0.0.294318 Beta 5 - Feb 04, 2011)<div><br></div><div><br></div><div><div>2>..\..\..\src\VTK\Common\vtkTclUtil.cxx(493) : error C2039: 'errorLine' : is not a member of 'Tcl_Interp'</div>
<div>2>        C:\Tcl\include\tcl.h(472) : see declaration of 'Tcl_Interp'</div></div><div><br></div><div><br></div><div><br></div><div>The code fragment in tcl.h is listed below. Should we be compiling VTK with -DUSE_INTERP_ERRORLINE ?</div>
<div><br></div><div><br></div><div><br></div><div><div>typedef struct Tcl_Interp {</div><div>    /* TIP #330: Strongly discourage extensions from using the string</div><div>     * result. */</div><div>#ifdef USE_INTERP_RESULT</div>
<div>    char *result;<span class="Apple-tab-span" style="white-space:pre">             </span>/* If the last command returned a string</div><div><span class="Apple-tab-span" style="white-space:pre">                             </span> * result, this points to it. */</div>
<div>    void (*freeProc) (char *blockPtr);</div><div><span class="Apple-tab-span" style="white-space:pre">                         </span>/* Zero means the string result is statically</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> * allocated. TCL_DYNAMIC means it was</div>
<div><span class="Apple-tab-span" style="white-space:pre">                              </span> * allocated with ckalloc and should be freed</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> * with ckfree. Other values give the address</div>
<div><span class="Apple-tab-span" style="white-space:pre">                              </span> * of function to invoke to free the result.</div><div><span class="Apple-tab-span" style="white-space:pre">                         </span> * Tcl_Eval must free it before executing next</div>
<div><span class="Apple-tab-span" style="white-space:pre">                              </span> * command. */</div><div>#else</div><div>    char *unused3;</div><div>    void (*unused4) (char *);</div><div>#endif</div><div>#ifdef USE_INTERP_ERRORLINE</div>
<div>    int errorLine;<span class="Apple-tab-span" style="white-space:pre">            </span>/* When TCL_ERROR is returned, this gives the</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> * line number within the command where the</div>
<div><span class="Apple-tab-span" style="white-space:pre">                              </span> * error occurred (1 if first line). */</div><div>#else</div><div>    int unused5;</div><div>#endif</div><div>} Tcl_Interp;</div></div><div><br></div><div>
Thanks</div><div>-</div><div>-karthik</div>