Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2bb8abe10bf520e545a61e21cc1e6b7068346773
Ticket: 3110161fffffffffffffffffffffffffffffffff
Extensions using TCHAR don't compile on VS2005 SP1
User & Date: nijtmans on 2010-11-16 14:51:21
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    It seems that the TCHAR define is missing from <tchar.h> here.
    
    
    Jeffrey Hobbs mailed about this:
    ======================================================================
    A user was complaining that in moving to 8.5 that they get errors on TCHAR not being defined when building extensions against Tcl using VS2005 SP1.
    
    In particular, the user application includes "tcl.h", but not the "windows.h". After they add the "windows.h" header, the error is gone.  However, this wasn't needed for 8.4 and I can't find any reference to this being a marked change in expected behavior.  They traced it down to the removal of this from tclPlatDecls.h in 8.5 (was in 8.4):
    
     #   if defined(_MSC_VER) && defined(__STDC__)
             /* MSVC++ misses this. */
             typedef _TCHAR TCHAR;
     #   endif
    
    I can't repro this behavior, but we have only MSVC6 or VS2008.  Does this ring any bells?  Is this user error somewhere else, or am I missing something about header behavior that we should doc?
    
  4. foundin changed to: "obsolete: 8.5.9"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nijtmans"
  10. subsystem changed to: "52. Portability Support"
  11. title changed to: "Extensions using TCHAR don't compile on VS2005 SP1"
  12. type changed to: "Bug"