Menu

#249 itclIntStubsPtr' : 'int' differs in levels of indirection from 'const ItclIntStubs *

4.0*
closed-fixed
None
3
2014-08-28
2014-01-27
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 were successful.
tcl_new/pkgs/itcl4.0.0/generic/itclIntDecls.h(16) : error C2143: syntax error : missing ')' before '->'
tcl_new/pkgs/itcl4.0.0/generic/itclIntDecls.h(16) : error C2143: syntax error : missing ';' before '->'
tcl_new/pkgs/itcl4.0.0/generic/itclIntDecls.h(16) : error C2040: 'itclIntStubsPtr' : 'int' differs in levels of indirection from 'const ItclIntStubs *'
tcl_new/pkgs/itcl4.0.0/generic/itclIntDecls.h(16) : error C2059: syntax error : ')'

Related

Bugs: #249

Discussion

  • Arnulf Wiedemann

     
  • Arnulf Wiedemann

    Sorry, I have no windows development environment.

    Nevertheless in my itclIntDecls.h line 16 is in the middle of a comment block (trunk version).

     
  • Jojo

    Jojo - 2014-02-18

    Thanks for the update.I am attaching a part of the build log for your reference.
    Line 16 is ITCLAPI int Itcl_IsClassNamespace(Tcl_Namespace namesp);In the attached build log we can see more lines in this itclIntDecls.h throwing similar error.
    error C2040: 'itclIntStubsPtr' : 'int' differs in levels of indirection from 'const ItclIntStubs
    '
    error C2373: 'itclIntStubsPtr' : redefinition; different type modifiers

     
  • Jojo

    Jojo - 2014-02-18

    Could you please let me know if this is the fix provided?
    http://core.tcl.tk/itcl/info/de3f0cf752

     
    • Arnulf Wiedemann

      Yes I think you are right, I assume Jan forgot to close the bug and I
      did not remember his fix.

      Can you eventually check out the sources an try if the problem is fixed?
      If you can confirm, I will close the ticket.

      Arnulf

      Am 18.02.2014 23:14, schrieb Jojo:

      Could you please let me know if this is the fix provided?
      http://core.tcl.tk/itcl/info/de3f0cf752


      [bugs:#249] itclIntStubsPtr' : 'int' differs in levels of indirection from 'const ItclIntStubs *

      Status: open
      Created: Mon Jan 27, 2014 05:59 PM UTC by Jojo
      Last Updated: Tue Feb 18, 2014 10:03 PM UTC
      Owner: Arnulf Wiedemann

      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 were successful.
      tcl_new/pkgs/itcl4.0.0/generic/itclIntDecls.h(16) : error C2143: syntax error : missing ')' before '->'
      tcl_new/pkgs/itcl4.0.0/generic/itclIntDecls.h(16) : error C2143: syntax error : missing ';' before '->'
      tcl_new/pkgs/itcl4.0.0/generic/itclIntDecls.h(16) : error C2040: 'itclIntStubsPtr' : 'int' differs in levels of indirection from 'const ItclIntStubs *'
      tcl_new/pkgs/itcl4.0.0/generic/itclIntDecls.h(16) : error C2059: syntax error : ')'


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/incrtcl/bugs/249/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #249

  • Jojo

    Jojo - 2014-02-19

    Hi Arnulf,
    With the suggested modification in itcl code the mentioned errors are resolved.Thank you..
    You can close this ticket.But in my task to migrate from itcl3.3 to itcl4.0 i am getting few more errors as some methods and objects are deprecated in the latest release.However i will create new tickets for getting help in this regard.Thank you!!!

    Jojo

     
  • Arnulf Wiedemann

    fixed in trunk, will be in version 4.0.1

     
  • Arnulf Wiedemann

    • status: open --> closed-fixed
     

Log in to post a comment.