Overview
| Artifact ID: | 2541490d99a66e2b5977f0ed3d68f5d81d8f0972 |
|---|---|
| Ticket: | 1082349fffffffffffffffffffffffffffffffff
extern "C" typedef incompatibility |
| User & Date: | dgp on 2004-12-09 18:21:39 |
Changes
- assignee changed to: "davygrvy"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.5a2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "None"
- title changed to: "extern "C" typedef incompatibility"
- type changed to: "Bug"