Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1311e799c0505eeb53ad68362d62f6b866c3d29b25201e8be3ee6173361dd9a2
Ticket: 4663e0636f7a24b9363e67c7a3dd25e9e495be17
TIP 538 and Tcl extensions: 'tommath.h' file not found
User & Date: mr_calvin on 2020-05-31 09:11:05
Changes

  1. icomment:
    Hi Jan, 
    
    Thanks again for your help and sry for getting back to it with much of a delay:
    
    * I use
    
    #if TCL_MAJOR_VERSION > 8 || TCL_MINOR_VERSION > 6
    #define TCL_NO_TOMMATH_H 1
    #endif
    #include <tclTomMath.h>
    
    and tested it against a Tcl at [1baf516ed4f18e08]  with embedded LTM and with a system-wide LTM. All looks good. (Took me a while to get LTM 2.0 installed and recognized by Tcl under macOS, no homebrew.)
    
    * I wondered: It would be nice to add a hint reflecting TCL_WITH_EXTERNAL_TOMMATH to tcl::pkgconfig (to figure out the LTM nature of Tcl's from within a script), wouldn't it?
    
    * Why did TIP 538 propose a --with-system-libtommath switch, rather than a --with-libtommath=/optional/path/to/ltm/installation ... ? This would be useful if ltm is not provided in a standard location (/opt/local etc.) and could still default to standard paths, if omitted? This is more in line with what others (e.g. tDOM) do in similar situations (system-wide expat).
    
    * A TEA_TOMMATH macro would be still appreciated, because this way not every TEA compliant extension needs to be manually fixed to add includes and link-time flags on its own (iff build against a Tcl with external LTM).
    
    Thx, Stefan
    
  2. login: "mr_calvin"
  3. mimetype: "text/plain"