Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-10-06
23:31 • Closed ticket [1941434fff]: Missing include file when using tclTomMath.h plu... artifact: 37e0ceb9c9 user: dgp
23:31 • Ticket [1941434fff]: 4 changes artifact: 1ce511769a user: dgp
2009-10-02
03:32 • Ticket [1941434fff]: 2 changes artifact: 9eb591c2af user: dgp
2009-10-01
04:52 • Ticket [1941434fff]: 4 changes artifact: 929912d66f user: dgp
04:35 • Ticket [1941434fff]: 4 changes artifact: 30eaacd0f7 user: dgp
04:34 • Ticket [1941434fff]: 4 changes artifact: ce6013e8c9 user: dgp
04:34 • Add attachment 1941434.patch to ticket [1941434fff] artifact: 2a78812bc8 user: dgp
2008-12-17
00:22 • Ticket [1941434fff] Missing include file when using tclTomMath.h status stil... artifact: 8043ed3f84 user: andygoth
2008-04-14
15:05 • Ticket [1941434fff]: 2 changes artifact: 5addd860a5 user: dkf
2008-04-13
17:23 • New ticket [1941434fff]. artifact: f2def8b4d4 user: mangoa01

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: