extern "C" typedef incompatibility
Closed / Fixed1082349fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-12-09 18:21:39
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.
dkf Ticket [1082349fff]: 1 change
[History diff]2004-12-10 16:10:39
dgpplain2004-12-14 05:17:15
Logged In: YES user_id=80530 restored.
Log in (anonymous is fine) to add a comment.