Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 55f0a6344ae905d95478873735b3f60acfc5c1cc
Ticket: e14c77b845ee4f52954de716a8b885f7fa9c9980
Compilation error over typedef
User & Date: griffin on 2016-04-08 15:42:15
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    I got a compilation error on Windows using Visual Studio 2013 (a.k.a. cl version 12.0), 64-bit, when building itk3.4.2.  The error was a redefined typedef:    typedef int ptrdiff_t;
    I was able to work around the problem with this change:
    
    $ diff -c ../devm3/prod/src/tcltk/8.6.x/tcl8.6.5/generic/tclInt.h prod/src/tcltk/8.6.x/tcl8.6.5/generic/tclInt.hprod/src/tcltk/8.6.x/tcl8.6.5/generic/tclInt.h          <
    *** ../devm3/prod/src/tcltk/8.6.x/tcl8.6.5/generic/tclInt.h     2016-01-19 04:57:54.000000000 -0800
    --- prod/src/tcltk/8.6.x/tcl8.6.5/generic/tclInt.h      2016-04-07 09:27:40.000000000 -0700
    ***************
    *** 51,58 ****
    --- 51,60 ----
      #ifdef STDC_HEADERS
      #include <stddef.h>
      #else
    + #ifndef _PTRDIFF_T_DEFINED
      typedef int ptrdiff_t;
      #endif
    + #endif
    
    
    Really, "int" for a pointer diff type for a 64-bit build is the wrong size in general.
    
  5. foundin changed to: "8.6.5"
  6. is_private changed to: "0"
  7. login: "griffin"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "b80f46c1123ce4c80dc91b0c46319f6a27235f6a"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "griffin"
  14. subsystem changed to: "69. Other"
  15. title changed to: "Compilation error over typedef"
  16. type changed to: "Bug"