Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a720c2ad445e2ae777938919d2dbea38c70579bef7377700ffe7a239fc42d255
Ticket: b89209f5cd549ecda8658c44616d29ba56fa78d7
compilation error Windows 10 / Visual Studio 2019
User & Date: ralfixx on 2021-01-04 18:05:16
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    When compiling with Visual Studio 2019 on Windows, using the Msys shell to
    run the configure script, I get an error:
    
        /bin/bash ./configure --enable-threads --disable-symbols --enable-64bit
        ...
        make RC=rc STLIB_LD="link.exe -lib -nologo" SHLIB_LD="link.exe -dll -incremental:no -nologo"
        ...
        cl -nologo [...] tclAppInit.obj tcl86.dll.a tclstub86.lib [...] \
                  tclsh.res -Fe"tclsh86.exe" -link [...]
          cl : Befehlszeile warning D9024 : Unbekannter Typ der Quelldatei "tcl86.dll.a", Objektdatei wird angenommen.
          LINK : fatal error LNK1181: Eingabedatei "tcl86.dll.a" kann nicht geƶffnet werden.
    
    Reason for the error is the "tcl86.dll.a" argument which is wrong IMHO (it
    should be tcl86.lib, see below).
    
    The same process runs fine with 8.6.10:
    
         /bin/bash ./configure --enable-threads --disable-symbols --enable-64bit
         ...
         make RC=rc STLIB_LD="link.exe -lib -nologo" SHLIB_LD="link.exe -dll -incremental:no -nologo"
         ...
         cl -nologo [...] tclAppInit.obj tcl86.lib tclstub86.lib [...] \
            tclsh.res -Fe"tclsh86.exe" -link [...]
    
    As you can see, here "tcl86.lib" is used.
    
    Reason is to be found in the win/configure script, where the single line
    from 8.6.10
        eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${LIBSUFFIX}\""
    was replaced in 8.6.11 by
        if test ${SHARED_BUILD} = 0 ; then
         eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${LIBSUFFIX}\""
        else
         eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${DLLSUFFIX}.a\""
        fi
    
    
    But this is plain wrong when using the Visual Studio compiler.
    
    Unfortunately I'm not fluent in configure, so I can't provide a patch
    to resolve this.
    
  5. foundin changed to: "8.6.11"
  6. is_private changed to: "0"
  7. login: "ralfixx"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "1d3c95db24e116878d6afed7cf890a89a0effe62"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "ralfixx"
  14. subsystem changed to: "53. Configuration and Build Tools"
  15. title changed to: "compilation error Windows 10 / Visual Studio 2019"
  16. type changed to: "Bug"