Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2541490d99a66e2b5977f0ed3d68f5d81d8f0972
Ticket: 1082349fffffffffffffffffffffffffffffffff
extern "C" typedef incompatibility
User & Date: dgp on 2004-12-09 18:21:39
Changes

  1. assignee changed to: "davygrvy"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    The Tcl 8.5a2 release dropped the
    
    extern "C" {
    ....
    }
    
    from tcl.h.  When compiling C++
    code, this changes the typedefs
    in an incompatible way.  
    
    For example, previously the
    typedef Tcl_DriverCloseProc
    was defined as
    
    extern "C" int(*)(void*,Tcl_Interp*)
    
    but now it is defined as
    
    int(*)(void*,Tcl_Interp*)
    
    which has different linkage.
    
    This leads to compiler warnings
    and even failure to compile code
    that worked fine with older Tcl
    releases.
    
    Workaround would be for all
    C++ code to wrap its #include's
    of tcl.h in extern "C" for itself.
    
    Please restore the extern "C".
    
    Sorry I did not catch this sooner.
    
  4. foundin changed to: "obsolete: 8.5a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "None"
  10. title changed to: "extern "C" typedef incompatibility"
  11. type changed to: "Bug"