<i>Patch from Bug 130582 (VC++ problems with stubs)</i> status still Open with 4 other changes
by
.
D 2001-07-06T14:44:26
J icomment Logged\sIn:\sYES\s\nuser_id=7549\n\nAnyone\slinking\sto\sTcl\swith\sStubs\smight\suse\sany\sof\s4\s\ncombination:\s-MD,\s-MDd,\s-MT,\s-MTd.\s\sUsing\s-Zl\swhen\s\ncompiling\stclStubLib.c\swill\snot\splace\sa\slink\srequirement\sto\s\nany\sof\sthe\sabove.\s\sIt'll\shave\sto\sone,\ssure,\sat\slink\stime,\s\nbut\shaving\sthe\scompiler\splace\sa\slink\srequirement\sto\sany\sof\s\nthese\sand\syou'll\sneed\sto\sdrop\sthis\sinto\sany\ssource\scode\s\nyou'll\sbe\susing\sTcl\swith:\n\n#ifdef\s_MSC_VER\n\s\s\s\s//\sOnly\sdo\sthis\swhen\sMSVC++\sis\scompiling\sus.\n#\s\s\sifdef\sUSE_TCL_STUBS\n//\sMark\sthis\s.obj\sas\sneeding\stcl's\sStubs\slibrary.\n#pragma\scomment(lib,\s"tclstub"\s\\\n\s\s\s\sSTRINGIFY(JOIN\n(TCL_MAJOR_VERSION,TCL_MINOR_VERSION))\s".lib")\n#if\s!defined(_MT)\s||\s!defined(_DLL)\s||\sdefined\n(_DEBUG)\n\s\s\s\s//\sThis\sfixes\sa\sbug\swith\show\sthe\sStubs\slibrary\s\nwas\scompiled.\n\s\s\s\s//\sThe\srequirement\sfor\smsvcrt.lib\sfrom\s\ntclstubXX.lib\sshould\n\s\s\s\s//\sbe\sremoved.\n#\s\s\s\spragma\scomment(linker,\s"-\nnodefaultlib:msvcrt.lib")\n#endif\n#\s\s\selse\n\s\s\s\s//\sMark\sthis\s.obj\sneeding\sthe\simport\slibrary\n#\s\s\spragma\scomment(lib,\s"tcl"\s\\\nSTRINGIFY(JOIN\n(TCL_MAJOR_VERSION,TCL_MINOR_VERSION))\s".lib")\n#\s\s\sendif\n#endif\n\nIt\sis\sperfectly\svalid\sto\sbuild\san\sapplication\sthat\sembeds\s\nTcl\swith\sthe\sstatic\smultithreaded\srun-time\s(aka\s-MT(d),\s\nlibcmt(d).lib).\s\sAnd\sif\sI\sbuild\sthe\sapp\swith\ssymbols,\sand\s\nchoose\sto\suse\sLoadLibrary(tcl84.dll);\swithout\ssymbols\sfor\s\nTcl,\sdoes\sit\smatter\sin\sthe\sbig\spicture?\s\sIf\s-Zl\swon't\sbe\s\nadded,\sI'll\sjust\sdo\sit\smyself\sfor\smy\sown\sstuff,\sand\s\nprobably\sleave\sthat\spreprocessor\swork\sin\smy\scode\sanyways\s\nnow\sthat\sI\sthink\sabout\sit...\n\nThis\strips\smany\sfirst\stime\sextension\sauthors,\sBTW.\n
J login davygrvy
J mimetype text/plain
J username davygrvy
K 403533ffffffffffffffffffffffffffffffffff
U davygrvy
Z b2c6bb74920c352f4970a9bf3487c5d0