| Ticket UUID: | 1495718 | |||
| Title: | Inconsistent link to standard debug libraries. | |||
| Type: | Bug | Version: | obsolete: 8.5a4 | |
| Submitter: | sebbarre | Created on: | 2006-05-26 20:31:59 | |
| Subsystem: | 85. Win Build | Assigned To: | davygrvy | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2026-10-22 17:22:34 | |
| Resolution: | Fixed | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-09-24 20:29:23 | |||
| Description: |
This change: http://tktoolkit.cvs.sourceforge.net/tktoolkit/tk/win/rules.vc?r1=1.5.2.1&r2=1.5.2.2 yanked the DBGX variable from win/rules.vc: It was: !if $(DEBUG) BUILDDIRTOP = Debug DBGX = g !else BUILDDIRTOP = Release DBGX = SUFX = $(SUFX:g=) !endif and is now: !if $(DEBUG) BUILDDIRTOP = Debug !else BUILDDIRTOP = Release !endif This variable is critical though, for it is used in win/makefile.vc that way: !if $(MSVCRT) !if "$(DBGX)" == "" crt = -MD !else crt = -MDd !endif !else !if "$(DBGX)" == "" crt = -MT !else crt = -MTd !endif !endif Now that DBGX is not defined anymore, debug build of Tcl/Tk are linked against the wrong (non-debug) standard library (libcmt or msvcrt instead of libcmtd or msvcrtd). This causes problem with larger projects that link against Tcl/Tk (especially static ones), where the compiler will complain about two standard libraries being included. Note that this is done correctly in Tcl (DBGX is used exactly the same way). DBGX is actually not used for anything else in both Tcl and Tk. Please revert to: !if $(DEBUG) BUILDDIRTOP = Debug DBGX = g !else BUILDDIRTOP = Release DBGX = SUFX = $(SUFX:g=) !endif Thanks. | |||
| User Comments: |
serhiy.storchaka added on 2026-09-24 20:29:23:
Fixed long ago: | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki