Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cd2170a8acfcdeb62928d9fd41a2babbe66a72a8
Ticket: 1689286fffffffffffffffffffffffffffffffff
nmakehlp not building on Win32 with VC
User & Date: twylite on 2007-03-27 15:09:37
Changes

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    I have just got the latest sampleextension from CVS, and am getting errors building it with VC6 or VC8.
    
      c:\build\sampleextension\win> pushd sampleextension\win
      c:\build\sampleextension\win> nmake /f makefile.vc all TCLDIR=..\..\tcl TKDIR=..\..\tk
      'nmakehlp' is not recognized as an internal or external command,
      operable program or batch file.
      ...<snip>
      Command line warning D4002 : ignoring unknown option '-fp:strict'
      Command line warning D4002 : ignoring unknown option '-GS'
      Command line warning D4002 : ignoring unknown option '-GL'
      ...<snip>
      LINK : warning LNK4044: unrecognized option "ltcg"; ignored
    
    The problems aren't fatal, but they shouldn't be there.
    
    Nmakehlp.exe doesn't build because:
    
      c:\sampleextension\win> cl nmakehlp.c
      ...<snip>
      /out:nmakehlp.exe
      nmakehlp.obj
      nmakehlp.obj : error LNK2001: unresolved external symbol _wnsprintf
      nmakehlp.exe : fatal error LNK1120: 1 unresolved externals
      
    This can be solved by taking the latest nmakehlp.c from the Tcl sources:
    
      c:\sampleextension\win> copy ..\..\tcl\win\nmakehlp.c
      
    The other warnings are fixed as a result of successfully building and using nmakehlp.
    
    --
    
    The next problem is that running the tests doesn't work.  The makefile looks for tclsh85.exe, which doesn't exist since I'm using a threaded build of Tcl.  
    
    The problem is on line 298 of rules.vc:
    
      SUFX    = sgx
    
    should be
    
      SUFX    = tsgx
      
    since the sampleextension build is supposed to be threaded by default.
    
    --
    
    Patch file against CVS is attached:
    - Updates nmakehlp.c to match the tcl module's version
    - Add 't' flag to SUFX default
    
    
    
    
  4. foundin changed to: "obsolete: 8.5a6"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "twylite"
  10. subsystem changed to: "70. Sample Extension"
  11. title changed to: "nmakehlp not building on Win32 with VC"
  12. type changed to: "Bug"