Artifacts Associated With Ticket 633990ffff
Ticket change [0147a9bfce] (rid 119451) by edwardross on 2002-11-05 19:27:37:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- comment initialized to:
PROBLEM --------------- in tcl.h TCL_STORAGE_CLASS is correctly defined arround line 249 with the following: #undef TCL_STORAGE_CLASS #ifdef BUILD_tcl # define TCL_STORAGE_CLASS DLLEXPORT #else # ifdef USE_TCL_STUBS # define TCL_STORAGE_CLASS # else # define TCL_STORAGE_CLASS DLLIMPORT # endif #endif However later in the same file arround line 1691, it is incorrectly defined as: #undef TCL_STORAGE_CLASS #define TCL_STORAGE_CLASS EXTERN intTcl_AppInit _ANSI_ARGS_((Tcl_Interp *interp)); #endif /* RESOURCE_INCLUDED */ #undef TCL_STORAGE_CLASS #define TCL_STORAGE_CLASS DLLIMPORT This usually doesn't cause any problems, but if you then try to link with proWrap.h, this incorrect definition of TCL_STORAGE_CLASS means that we can't link. Would also be a problem for linking with static libs rather than dlls (obviously talking about on windows here). Workaround ------------------ Undefine TCL_STORAGE_CLASS before include proWrap.h. Possible Resolution ----------------------------- (1) change the definition at line 249 to: #ifdef __cplusplus # define HEAD_EXTERN extern "C" #else # define EXTERN extern TCL_STORAGE_CLASS #endif #define EXTERN HEAD_EXTERN TCL_STORAGE_CLASS (2) Remove all further defines/undefines for TCL_STORAGE_CLASS at line 1694 etc. (3) change the declaration at line 1694 to: EXTERN_HEAD int Tcl_AppInit _ANSI_ARGS_((Tcl_Interp *interp));
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "edwardross"
- subsystem initialized to: "40. Dynamic Loading"
- title initialized to: "tcl.h always makes incorrect #define"
- type initialized to: "Bug"
Ticket change [c355564c3c] (rid 111640) by edwardross on 2002-11-06 02:27:38:
- icomment:
File Added - 34689: tcl.h
- login: "edwardross"
- mimetype: "text/plain"
- username: "edwardross"
- icomment:
Add attachment "tcl.h" [41a4591fa5] (rid 116226) by edwardross on 2002-11-06 02:27:38.
Ticket change [028ba9292a] (rid 119669) by davygrvy on 2002-12-11 05:36:35:
- icomment:
Logged In: YES user_id=7549 See TIP #60 IMO, storage class is a big mess in Tcl.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [3082c2de4c] (rid 93269) by kennykb on 2003-02-17 02:50:53:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=99768 Jeff, what's the proper TEA2 thing to do here? I know that others build extensions quite successfully even with TclPro headers. I'm thinking that this is either the original submitter doing something wrong, or else something amiss in <prowrap.h>.
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
Ticket change [219c7dcf2b] (rid 130618) by nobody on 2003-02-17 03:13:38:
- icomment:
Logged In: NO It is possible that I did something wrong. However, it is clear that the header file is incorrect. What could be a valid reason for undefing TCL_STORAGE_CLASS and then redefining it as DLLIMPORT? It is obvious from the initial definition (arround line 249) that there are three possible correct values. The undefining of the TCL_STORAGE_CLASS is a complete hack. It is simply incorrect!
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [e959741e31] (rid 104807) by hobbs on 2003-07-19 02:43:59:
- assignee changed to: "davygrvy"
Ticket change [0761c4b3ae] (rid 89387) by davygrvy on 2003-07-19 02:59:20:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=7549 Please see tip#60, I have nothing to say on this specific problem except that it is covered there.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
Ticket change [e4042f06bb] (rid 87890) by edwardross on 2003-07-19 03:00:31:
- assignee changed to: "davygrvy"
- icomment:
Logged In: YES user_id=578816 Looks like I made a mistake in my suggested resolution. Perhaps I meant: Possible Resolution ----------------------------- (1) ADD the following definition after the definition of TCL_STORAGE CLASS: #ifdef __cplusplus # define HEAD_EXTERN extern "C" #else # define HEAD_EXTERN extern #endif #define EXTERN HEAD_EXTERN TCL_STORAGE_CLASS (2) Remove all further defines/undefines for TCL_STORAGE_CLASS at line 1694 etc. (3) change the declaration at line 1694 to: HEAD_EXTERN int Tcl_AppInit _ANSI_ARGS_((Tcl_Interp *interp));
- login: "edwardross"
- mimetype: "text/plain"
- username: "edwardross"
Ticket change [36d06fee61] (rid 107170) by davygrvy on 2003-07-19 03:03:13:
- assignee changed to: "hobbs"
Ticket change [9896415abb] (rid 110631) by dgp on 2003-11-13 08:55:46:
- foundin changed to: "obsolete: 8.4.1"
Ticket change [4c160c37b7] (rid 126815) by hobbs on 2007-06-13 02:46:24:
- closedate changed to: "2007-06-12T19:46:24"
- closer changed to: "hobbs"
- resolution changed to: "Out of Date"
- status changed to: "Closed"