Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 30f1a95a25028c124478123a3928f4efa8ff79e9
Ticket: cb62320163a541a573763f3c0fcaf6cb4ce561cb
two errors moving from itcl 4.0.3 to itcl 4.0.4
User & Date: AndyA on 2016-08-12 13:22:41
Changes

  1. icomment:
    
    After some fairly tedious edits and compile cycles, I've got an Itk 4.0.2 makefile.vc that compiles on Windows, but I get trouble with linking the library because of references to Itcl_ functions from the Itk C files.
    
    If I do dumpbin /exports on the generated Itcl libraries only Itcl_Init and Itcl_SafeInit are exported from the dll, and nothing is exported from the itclstub40.lib.
    
    If I patch itclIntDecls.h to use ITCL_EXPORT instead of ITCLAPI, then the functions are exported, but I fear this is not how it's "supposed" to be done, and further the itk build doesn't know that it's supposed to be imported from another DLL.
    
    So overall I suspect I'm missing a trick in the makefile.vc that causes ITCLAPI to import or export depending on the current build context. Any advice or pointers to the "proper" way this is supposed to be done?
    
  2. login: "AndyA"
  3. mimetype: "text/plain"