Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2010-11-16
22:07 • Closed ticket [3110161fff]: Extensions using TCHAR don't compile on VS2005 S... artifact: aad52ffd77 user: nijtmans
14:51 • New ticket [3110161fff]. artifact: 2bb8abe10b user: nijtmans

Extensions using TCHAR don't compile on VS2005 SP1

Closed / Fixed3110161fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2010-11-16 14:51:21
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?
nijtmansplain2010-11-16 22:07:47
allow_comments - 1

Fixed in HEAD and tcl8.5 branch
Log in (anonymous is fine) to add a comment.