Artifacts Associated With Ticket 219383ffffffffff
Ticket change [5a534e0a62] (rid 118123) by nobody on 2000-10-26 05:12:04:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 6073 RFE Version: 8.1b3 SubmitDate: '2000-07-28' LastModified: '2000-07-31' Severity: LOW Status: UnAssn Submitter: davidg ChangedBy: davidg OS: All Windows FixedDate: '2000-10-25' ClosedDate: '2000-10-25' This always bugged me. release/dynamic flavor only. I got in the habit of doing the following in my extension code: #ifdef _MSC_VER // mark this .obj as needing tcl's Stubs library # pragma comment(lib, "tclstub84.lib") // the requirement for msvcrt.lib from tclstub84.lib should // be removed. # pragma comment(linker, "/nodefaultlib:msvcrt.lib") #endif So here's the "strip it at the source" fix so I don't have to keep adding the strip at link-time for my extensions: *** tclStubLib.c1999/05/25 01:00:271.4 --- tclStubLib.c2000/07/29 06:25:51 *************** *** 29,34 **** --- 29,60 ---- #include "tclPort.h" /* + * Remove the C-runtime #pragmas the previous headers insert. The runtime + * flavor has no importance being encoded in the .obj and should not limit + * the use of the Stubs static library it's placed into. + */ + #ifdef _MSC_VER + # if defined(_MT) && defined(_DLL) && defined(_DEBUG) + #pragma comment (linker, "-nodefaultlib:msvcrtd.lib") + # endif + # if defined(_MT) && defined(_DLL) && !defined(_DEBUG) + #pragma comment (linker, "-nodefaultlib:msvcrt.lib") + # endif + # if defined(_MT) && !defined(_DLL) && defined(_DEBUG) + #pragma comment (linker, "-nodefaultlib:libcmtd.lib") + # endif + # if defined(_MT) && !defined(_DLL) && !defined(_DEBUG) + #pragma comment (linker, "-nodefaultlib:libcmt.lib") + # endif + # if !defined(_MT) && !defined(_DLL) && defined(_DEBUG) + #pragma comment (linker, "-nodefaultlib:libcd.lib") + # endif + # if !defined(_MT) && !defined(_DLL) && !defined(_DEBUG) + #pragma comment (linker, "-nodefaultlib:libc.lib") + # endif + #endif + + /* * Ensure that Tcl_InitStubs is built as an exported symbol. The other stub * functions should be built as non-exported symbols. */ NOT! maybe compile with no /Mxx switch so it defaults to /ML (ie. libc.lib) then strip that with a single #pragma in the source. It was messing up my MFC project using /MD(d) striping. Too bad there isn't a way to not reference ANY runtime. This really should be neutral. -- 07/29/2000 davidg This is as neutral as I can get it. noone EVER uses libc.lib, so we'll compile tclStubLib.c for that and strip it. This way, any of the 4 multi-threaded flavors will not colide with it. *** generic/tclStubLib.c1999/05/25 01:00:271.4 --- generic/tclStubLib.c2000/07/31 23:54:10 *************** *** 29,34 **** --- 29,45 ---- #include "tclPort.h" /* + * Remove the C-runtime #pragma (windows build) the compiler inserts. + * The runtime flavor has no importance being encoded in the .obj and should + * not limit the use of the Stubs static library it's placed into. + */ + #ifdef _MSC_VER + # if !defined(_MT) && !defined(_DLL) && !defined(_DEBUG) + #pragma comment (linker, "-nodefaultlib:libc.lib") + # endif + #endif + + /* * Ensure that Tcl_InitStubs is built as an exported symbol. The other stub * functions should be built as non-exported symbols. */ *** win/makefile.vc2000/07/19 18:27:451.53 --- win/makefile.vc2000/07/31 23:57:35 *************** *** 313,319 **** << $(TCLSTUBLIB): $(TCLSTUBOBJS) ! $(lib32) /out:$@ $(TCLSTUBOBJS) $(TCLPLUGINLIB): $(TCLPLUGINDLL) --- 312,318 ---- << $(TCLSTUBLIB): $(TCLSTUBOBJS) ! $(lib32) -nologo -out:$@ $(TCLSTUBOBJS) $(TCLPLUGINLIB): $(TCLPLUGINDLL) *************** *** 473,479 **** # be built as DLL objects but none of the symbols should be exported $(TMPDIR)\tclStubLib.obj : $(GENERICDIR)\tclStubLib.c ! $(cc32) $(TCL_CFLAGS) -DSTATIC_BUILD -Fo$@ $? # Dedependency rules --- 472,478 ---- # be built as DLL objects but none of the symbols should be exported $(TMPDIR)\tclStubLib.obj : $(GENERICDIR)\tclStubLib.c ! $(cc32) -c -nologo -ML -DSTATIC_BUILD -Fo$@ $? # Dedependency rules -- 07/31/2000 davidg - foundin initialized to: "obsolete: 8.1b3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "75. Tutorial"
- title initialized to:
linking with tclstub8X.lib has a C-runtime flavor set at com
- type initialized to: "Bug"
Ticket change [149618234a] (rid 124420) by dgp on 2001-04-05 06:52:44:
- subsystem changed to: "53. Configuration and Build Tools"
Ticket change [66cf81a8db] (rid 102788) by davygrvy on 2001-04-21 05:41:49:
- icomment:
Logged In: YES user_id=7549 somebody please delete this, thanks :)
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [172639dd3a] (rid 124835) by hobbs on 2001-04-24 05:25:09:
- closedate changed to: "2001-04-23T22:25:09"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 See bug 230582 instead. https://sourceforge.net/tracker/index.php? func=detail&aid=230582&group_id=10894&atid=110894
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "hobbs"