From: <no...@so...> - 2001-04-23 20:23:44
|
Bugs item #220333, was updated on 2000-10-31 15:13 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112997&aid=220333&group_id=12997 Category: Win Build Group: 8.4a2 Status: Open Resolution: None Priority: 2 Submitted By: Brent B. Welch (welch) Assigned to: Nobody/Anonymous (nobody) Summary: linking to tk84.lib fails Initial Comment: OriginalBugID: 5849 Bug Version: 8.4a1 SubmitDate: '2000-06-07' LastModified: '2000-07-28' Severity: CRIT Status: Released Submitter: techsupp ChangedBy: shawn RelatedBugIDs: 6062 OS: Windows 95 FixedDate: '2000-07-28' ClosedDate: '2000-07-28' Name: Don Porter Comments: The disk is not full. cl == Microsoft(R) 32-Bit Optimizing Compiler Version 11.00.7022 for 80x86 The same sequence of operation succeeds with Tcl/Tk 8.3.1. ReproducibleScript: /* FILE: test.c */ #include <tcl.h> #include <tk.h> int Tcl_AppInit(Tcl_Interp *interp) { if (Tcl_Init(interp) != TCL_OK) { return TCL_ERROR; } if (Tk_Init(interp) != TCL_OK) { return TCL_ERROR; } Tcl_StaticPackage(interp, "Tk", Tk_Init, Tk_SafeInit); return TCL_OK; } int main(int argc, char **argv) { // Turn over control to the Tk library. Tk_Main(argc, argv, Tcl_AppInit); // Make picky compilers happy. return 0; } ObservedBehavior: C:> cl /nologo /c /IC:/PROGRA~1/TCL/include /Fotest.obj test.c test.c C:> link /nologo test.obj C:/PROGRA~1/TCL/lib/tk84.lib C:/PROGRA~1/TCL/lib/tcl84.lib /OUT:test.exe C:/PROGRA~1/TCL/lib/tk84.lib: fatal error LNK1106: invalid file or disk full: cannot seek to 0x393f800d DesiredBehavior: I should be able to statically link my C apps to tk84.lib. Dave Gravereaux suggests that this is because the distribution was built with VC 6.0, which produces library files that are incompatible with VC 5.0. We should either use VC 5.0 to build our distribution, or specify "/compat50lib" on the link line, so that the binaries produced are VC 5.0 compatible. - eric -- 06/19/2000 ericm Is a duplicate of 6062 -- 07/28/2000 shawn ---------------------------------------------------------------------- Comment By: David Gravereaux (davygrvy) Date: 2001-04-23 13:23 Message: Logged In: YES user_id=7549 The latest (or last) service pack for VC5 has a linker that understands the VC6 format. http://msdn.microsoft.com/vstudio/sp/vs97/default.asp I think adding /LINK50COMPAT to the linker is a good idea, too. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2001-02-01 13:41 Message: Re-opened. The tk84.lib file distributed with the Tcl/Tk 8.4a2 binary distribution is still not MSVC++ 5.0 compatible. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112997&aid=220333&group_id=12997 |