Overview
| Artifact ID: | 55f0a6344ae905d95478873735b3f60acfc5c1cc |
|---|---|
| Ticket: | e14c77b845ee4f52954de716a8b885f7fa9c9980
Compilation error over typedef |
| User & Date: | griffin on 2016-04-08 15:42:15 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "8.6.5"
- is_private changed to: "0"
- login: "griffin"
- priority changed to: "5 Medium"
- private_contact changed to: "b80f46c1123ce4c80dc91b0c46319f6a27235f6a"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "griffin"
- subsystem changed to: "69. Other"
- title changed to: "Compilation error over typedef"
- type changed to: "Bug"