Skip to content
Tcl Source Code Artifact [5a534e0a62]
Login

Artifact [5a534e0a62]

Artifact 5a534e0a6200703436f1ae00d7df9163e9ed2aa8:

Ticket change [5a534e0a62] - New ticket [219383ffffffffff|219383ffff] <i>linking with tclstub8X.lib has a C-runtime flavor set at com</i>. by nobody on 2000-10-26 05:12:04.
D 2000-10-26T05:12:04
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s6073\sRFE\nVersion:\s8.1b3\nSubmitDate:\s'2000-07-28'\nLastModified:\s'2000-07-31'\nSeverity:\sLOW\nStatus:\sUnAssn\nSubmitter:\sdavidg\nChangedBy:\sdavidg\nOS:\sAll\sWindows\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nThis\salways\sbugged\sme.\s\srelease/dynamic\sflavor\sonly.\s\sI\sgot\sin\sthe\nhabit\sof\sdoing\sthe\sfollowing\sin\smy\sextension\scode:\n\n#ifdef\s_MSC_VER\n\s\s\s\s//\smark\sthis\s.obj\sas\sneeding\stcl's\sStubs\slibrary\n#\s\s\spragma\scomment(lib,\s"tclstub84.lib")\n\s\s\s\s//\sthe\srequirement\sfor\smsvcrt.lib\sfrom\stclstub84.lib\sshould\n\s\s\s\s//\sbe\sremoved.\n#\s\s\spragma\scomment(linker,\s"/nodefaultlib:msvcrt.lib")\n#endif\n\nSo\shere's\sthe\s"strip\sit\sat\sthe\ssource"\sfix\sso\sI\sdon't\shave\sto\skeep\nadding\sthe\sstrip\sat\slink-time\sfor\smy\sextensions:\n\n***\stclStubLib.c1999/05/25\s01:00:271.4\n---\stclStubLib.c2000/07/29\s06:25:51\n***************\n***\s29,34\s****\n---\s29,60\s----\n\s\s#include\s"tclPort.h"\n\s\s\n\s\s/*\n+\s\s*\sRemove\sthe\sC-runtime\s#pragmas\sthe\sprevious\sheaders\sinsert.\s\sThe\sruntime\n+\s\s*\sflavor\shas\sno\simportance\sbeing\sencoded\sin\sthe\s.obj\sand\sshould\snot\slimit\n+\s\s*\sthe\suse\sof\sthe\sStubs\sstatic\slibrary\sit's\splaced\sinto.\n+\s\s*/\n+\s#ifdef\s_MSC_VER\n+\s#\s\s\sif\sdefined(_MT)\s&&\sdefined(_DLL)\s&&\sdefined(_DEBUG)\n+\s#pragma\scomment\s(linker,\s"-nodefaultlib:msvcrtd.lib")\n+\s#\s\s\sendif\n+\s#\s\s\sif\sdefined(_MT)\s&&\sdefined(_DLL)\s&&\s!defined(_DEBUG)\n+\s#pragma\scomment\s(linker,\s"-nodefaultlib:msvcrt.lib")\n+\s#\s\s\sendif\n+\s#\s\s\sif\sdefined(_MT)\s&&\s!defined(_DLL)\s&&\sdefined(_DEBUG)\n+\s#pragma\scomment\s(linker,\s"-nodefaultlib:libcmtd.lib")\n+\s#\s\s\sendif\n+\s#\s\s\sif\sdefined(_MT)\s&&\s!defined(_DLL)\s&&\s!defined(_DEBUG)\n+\s#pragma\scomment\s(linker,\s"-nodefaultlib:libcmt.lib")\n+\s#\s\s\sendif\n+\s#\s\s\sif\s!defined(_MT)\s&&\s!defined(_DLL)\s&&\sdefined(_DEBUG)\n+\s#pragma\scomment\s(linker,\s"-nodefaultlib:libcd.lib")\n+\s#\s\s\sendif\n+\s#\s\s\sif\s!defined(_MT)\s&&\s!defined(_DLL)\s&&\s!defined(_DEBUG)\n+\s#pragma\scomment\s(linker,\s"-nodefaultlib:libc.lib")\n+\s#\s\s\sendif\n+\s#endif\n+\s\n+\s/*\n\s\s\s*\sEnsure\sthat\sTcl_InitStubs\sis\sbuilt\sas\san\sexported\ssymbol.\s\sThe\sother\sstub\n\s\s\s*\sfunctions\sshould\sbe\sbuilt\sas\snon-exported\ssymbols.\n\s\s\s*/\n\n\n\nNOT!\n\nmaybe\scompile\swith\sno\s/Mxx\sswitch\sso\sit\sdefaults\sto\s/ML\s(ie.\slibc.lib)\nthen\sstrip\sthat\swith\sa\ssingle\s#pragma\sin\sthe\ssource.\s\sIt\swas\smessing\nup\smy\sMFC\sproject\susing\s/MD(d)\sstriping.\s\sToo\sbad\sthere\sisn't\sa\sway\nto\snot\sreference\sANY\sruntime.\s\sThis\sreally\sshould\sbe\sneutral.\s\n--\s07/29/2000\sdavidg\n\nThis\sis\sas\sneutral\sas\sI\scan\sget\sit.\s\snoone\sEVER\suses\slibc.lib,\sso\swe'll\scompile\stclStubLib.c\sfor\sthat\sand\sstrip\sit.\s\sThis\sway,\sany\sof\sthe\s4\nmulti-threaded\sflavors\swill\snot\scolide\swith\sit.\n\n***\sgeneric/tclStubLib.c1999/05/25\s01:00:271.4\n---\sgeneric/tclStubLib.c2000/07/31\s23:54:10\n***************\n***\s29,34\s****\n---\s29,45\s----\n\s\s#include\s"tclPort.h"\n\n\s\s/*\n+\s\s*\sRemove\sthe\sC-runtime\s#pragma\s(windows\sbuild)\sthe\scompiler\sinserts.\n+\s\s*\sThe\sruntime\sflavor\shas\sno\simportance\sbeing\sencoded\sin\sthe\s.obj\sand\sshould\n+\s\s*\snot\slimit\sthe\suse\sof\sthe\sStubs\sstatic\slibrary\sit's\splaced\sinto.\n+\s\s*/\n+\s#ifdef\s_MSC_VER\n+\s#\s\s\sif\s!defined(_MT)\s&&\s!defined(_DLL)\s&&\s!defined(_DEBUG)\n+\s#pragma\scomment\s(linker,\s"-nodefaultlib:libc.lib")\n+\s#\s\s\sendif\n+\s#endif\n+\s\n+\s/*\n\s\s\s*\sEnsure\sthat\sTcl_InitStubs\sis\sbuilt\sas\san\sexported\ssymbol.\s\sThe\sother\sstub\n\s\s\s*\sfunctions\sshould\sbe\sbuilt\sas\snon-exported\ssymbols.\n\s\s\s*/\n\n***\swin/makefile.vc2000/07/19\s18:27:451.53\n---\swin/makefile.vc2000/07/31\s23:57:35\n***************\n***\s313,319\s****\n\s\s<<\n\n\s\s$(TCLSTUBLIB):\s$(TCLSTUBOBJS)\n!\s$(lib32)\s/out:$@\s$(TCLSTUBOBJS)\n\n\s\s$(TCLPLUGINLIB):\s$(TCLPLUGINDLL)\n\n---\s312,318\s----\n\s\s<<\n\n\s\s$(TCLSTUBLIB):\s$(TCLSTUBOBJS)\n!\s$(lib32)\s-nologo\s-out:$@\s$(TCLSTUBOBJS)\n\n\s\s$(TCLPLUGINLIB):\s$(TCLPLUGINDLL)\n\n***************\n***\s473,479\s****\n\s\s#\sbe\sbuilt\sas\sDLL\sobjects\sbut\snone\sof\sthe\ssymbols\sshould\sbe\sexported\n\n\s\s$(TMPDIR)\\tclStubLib.obj\s:\s$(GENERICDIR)\\tclStubLib.c\n!\s$(cc32)\s$(TCL_CFLAGS)\s-DSTATIC_BUILD\s-Fo$@\s$?\n\n\s\s#\sDedependency\srules\n---\s472,478\s----\n\s\s#\sbe\sbuilt\sas\sDLL\sobjects\sbut\snone\sof\sthe\ssymbols\sshould\sbe\sexported\n\n\s\s$(TMPDIR)\\tclStubLib.obj\s:\s$(GENERICDIR)\\tclStubLib.c\n!\s$(cc32)\s-c\s-nologo\s-ML\s-DSTATIC_BUILD\s-Fo$@\s$?\n\n\s\s#\sDedependency\srules\n\n--\s07/31/2000\sdavidg\n\n
J foundin obsolete:\s8.1b3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 75.\sTutorial
J title linking\swith\stclstub8X.lib\shas\sa\sC-runtime\sflavor\sset\sat\scom
J type Bug
K 219383ffffffffffffffffffffffffffffffffff
U nobody
Z bc9b3512ceee44cc946a4ba033360cf5