Menu

#248 tcl8.6.1 and itcl4.0.0,'Tcl_Var' issue

4.0*
closed-fixed
None
3
2014-01-27
2013-12-14
Jojo
No

We build tcl8.6.1 and its related package itcl4.0.0 using VS2005. While linking and building the newly generated dll tcl86t and itcl40t to our project we are getting the below mentioned errors.The header files included in our project are tcl.h,itcl.h,itclInt.h,itclIntDecls.h. Earlier configuration of our project was with tcl8.4.13 and itcl3.3 in which the linking and build was successful. Could you please let us know if we need to adapt something for this new tcl8.6.1 and itcl4.0.0?

tcl_new\pkgs\itcl4.0.0\generic\itclMigrate2TclCore.h(6) : error C2371: 'Tcl_Var' : redefinition; different basic types
tcl_new\generic\tcl.h(555) : see declaration of 'Tcl_Var'
tcl_new\pkgs\itcl4.0.0\generic\itclMigrate2TclCore.h(78) : error C2526: 'Tcl_NewNamespaceVar' : C linkage function cannot return C++ class 'Tcl_Var'
tcl_new\pkgs\itcl4.0.0\generic\itclMigrate2TclCore.h(6) : see declaration of 'Tcl_Var'
tcl_new\pkgs\itcl4.0.0\generic\itclTclIntStubsFcn.h(5) : error C2526: 'Itcl_FindNamespaceVar' : C linkage function cannot return C++ class 'Tcl_Var'
tcl_new\pkgs\itcl4.0.0\generic\itclMigrate2TclCore.h(6) : see declaration of 'Tcl_Var'
tcl_new/pkgs/itcl4.0.0/generic/itclInt.h(626) : error C2079: 'ItclVarLookup::varPtr' uses undefined struct 'Tcl_Var'
tcl_new/pkgs/itcl4.0.0/generic/itclInt.h(688) : error C2526: 'Itcl_VarAliasProc' : C linkage function cannot return C++ class 'Tcl_Var'
tcl_new\pkgs\itcl4.0.0\generic\itclMigrate2TclCore.h(6) : see declaration of 'Tcl_Var'

Discussion

  • Arnulf Wiedemann

    • status: open --> closed-fixed
     
  • Arnulf Wiedemann

    fixed in trunk.

     
  • Don Porter

    Don Porter - 2014-01-27

    After this commit to trunk, Itcl fails to build:

    In file included from ./generic/itclInt.h:37,
    from ./generic/itcl2TclOO.c:14:
    ./generic/itclMigrate2TclCore.h:6: error: redefinition of typedef ‘Tcl_Var’
    /home/dgp/fossil/tcl/generic/tcl.h:555: error: previous declaration of ‘Tcl_Var’ was here

     
  • Jan Nijtmans

    Jan Nijtmans - 2014-01-27
     
  • Don Porter

    Don Porter - 2014-01-27

    Yes. Fixed now. thanks!

     
  • Jojo

    Jojo - 2014-01-27

    The reported issue is fixed.Thank you!!!

     

Log in to post a comment.