|
2001-09-03
| ||
| 07:49 | • Closed ticket [403533ffff]: Patch from Bug 130582 (VC++ problems with stubs)... artifact: fbee8ed0aa user: davygrvy | |
|
2001-08-25
| ||
| 01:12 | • Ticket [403533ffff]: 1 change artifact: d79ab0aa57 user: andreas_kupries | |
|
2001-07-06
| ||
| 14:44 | • Ticket [403533ffff]: 4 changes artifact: ed387e2659 user: davygrvy | |
| 13:49 | • Ticket [403533ffff]: 4 changes artifact: 8ddca83011 user: mdejong | |
|
2001-05-18
| ||
| 07:34 | • Ticket [403533ffff]: 4 changes artifact: df573c5700 user: davygrvy | |
|
2001-03-29
| ||
| 09:47 | • Ticket [403533ffff]: 4 changes artifact: e81c5d6995 user: dgp | |
| 08:49 | • Ticket [403533ffff]: 4 changes artifact: aaa3c87d4f user: hobbs | |
|
2001-02-27
| ||
| 18:41 | • Ticket [403533ffff]: 1 change artifact: 157fa8a018 user: dkf | |
|
2001-02-22
| ||
| 07:14 | • Ticket [403533ffff]: 1 change artifact: 5be23f0410 user: dgp | |
|
2001-02-01
| ||
| 06:25 | • Add attachment None to ticket [403533ffff] artifact: 5588493b28 user: dgp | |
|
2001-01-31
| ||
| 23:25 | • New ticket [403533ffff] Patch from Bug 130582. artifact: aecd71ea71 user: dgp | |
Patch from Bug 130582 (VC++ problems with stubs)
Closed / Fixed403533ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
dgp Ticket [403533ffff]: 1 change
[History diff]2001-02-22 07:14:30
dkf Ticket [403533ffff]: 1 change
[History diff]2001-02-27 18:41:22
hobbsplain2001-03-29 08:49:47
Logged In: YES user_id=72656 I'm not able to find the original bug report by that number of name (in currently open reports). What was this fixing?
dgpplain2001-03-29 09:47:28
Logged In: YES user_id=80530 Bug 230582: http://sourceforge.net/tracker/index.php?func=detail&aid=230582&group_id=10894&atid=110894
davygrvyplain2001-05-18 07:34:24
Logged In: YES user_id=7549 It gets rid of the run-time linking requirement to MSVCRT.lib so only one flavor of it is ever needed.
mdejongplain2001-07-06 13:49:00
Logged In: YES user_id=90858 I am no VC++, but is this really the correct solution? The bug report claims that extension developers will want to do things like link debug code to a non-debug build of Tcl and vice versa. I was under the impression that this is exactly the sort of thing we wanted to avoid. Would this not pull in two copies of a given dll (the debug and non-debug versions) when the extension in question is loaded into Tcl? I would think that leaving the lib name in the .obj file is actually a good thing and that adding -nodefaultlib:msvcrt.lib is just silencing the real problem of mixed libs. If the app is using the CFLAGS set by Tcl (like -MD or whatever) then this would not be a problem, right?
davygrvyplain2001-07-06 14:44:26
Logged In: YES
user_id=7549
Anyone linking to Tcl with Stubs might use any of 4
combination: -MD, -MDd, -MT, -MTd. Using -Zl when
compiling tclStubLib.c will not place a link requirement to
any of the above. It'll have to one, sure, at link time,
but having the compiler place a link requirement to any of
these and you'll need to drop this into any source code
you'll be using Tcl with:
#ifdef _MSC_VER
// Only do this when MSVC++ is compiling us.
# ifdef USE_TCL_STUBS
// Mark this .obj as needing tcl's Stubs library.
#pragma comment(lib, "tclstub" \
STRINGIFY(JOIN
(TCL_MAJOR_VERSION,TCL_MINOR_VERSION)) ".lib")
#if !defined(_MT) || !defined(_DLL) || defined
(_DEBUG)
// This fixes a bug with how the Stubs library
was compiled.
// The requirement for msvcrt.lib from
tclstubXX.lib should
// be removed.
# pragma comment(linker, "-
nodefaultlib:msvcrt.lib")
#endif
# else
// Mark this .obj needing the import library
# pragma comment(lib, "tcl" \
STRINGIFY(JOIN
(TCL_MAJOR_VERSION,TCL_MINOR_VERSION)) ".lib")
# endif
#endif
It is perfectly valid to build an application that embeds
Tcl with the static multithreaded run-time (aka -MT(d),
libcmt(d).lib). And if I build the app with symbols, and
choose to use LoadLibrary(tcl84.dll); without symbols for
Tcl, does it matter in the big picture? If -Zl won't be
added, I'll just do it myself for my own stuff, and
probably leave that preprocessor work in my code anyways
now that I think about it...
This trips many first time extension authors, BTW.
andreas_kupries Ticket [403533ffff]: 1 change
[History diff]2001-08-25 01:12:07
davygrvyplain2001-09-03 07:49:09
Logged In: YES user_id=7549 commited to HEAD.
Log in (anonymous is fine) to add a comment.
Attachments:
- None [download] added by dgp on 2001-02-01 06:25:08. [details]