Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Missing include file when using tclTomMath.h

Closed / Fixed1941434fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 17 years ago
Descriptionplain2008-04-13 17:23:55
When compiling an extension that uses bignum objects it is necessary to include "tclTomMath.h" to obtain the prototypes for the bignum functions. "tclTomMath.h" also includes "tommath_class.h" which is not part of the installed include files. "tommath_class.h" is located in the "libtommath" directory. Therefore it is necessary to have sources around in order to build extensions that use bignums.
dkf Ticket [1941434fff]: 2 changes [History diff]2008-04-14 15:05:47
andygothplain2008-12-17 00:22:08
I have also run into this problem with Tcl 8.6a3.  I was able to work around it simply by creating an empty file named tommath_class.h in my source tree and adding its directory to the -I include path.  However, this is a very ugly hack.  tclTomMath.h should be fixed to only include this file when building the Tcl library or to never include it at all, depending on whether or not it serves any purpose at build time.  It isn't useful when simply using the library.
dgpplain2009-10-01 04:34:40
File Added - 344903: 1941434.patch
dgpplain2009-10-01 04:35:19
Patch uploaded for comments.

See also  http://wiki.tcl.tk/24497 .
dgpplain2009-10-01 04:52:33
That patch is against the HEAD.  Should adapt
easily to the 8.5 branch.
dgp Ticket [1941434fff]: 2 changes [History diff]2009-10-02 03:32:45
dgpplain2009-10-06 23:31:18
Fixed for 8.5.8 and 8.6b2.
dgpplain2009-10-06 23:31:21
allow_comments - 1
Log in (anonymous is fine) to add a comment.

Attachments: