Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TEA needs -ltk before -ltcl

Closed / Works For Me1432696fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 16 years ago
Descriptionplain2006-02-16 08:16:07
When linking without stubs, extensions need to link
first against tk and then against tcl because the tk
library refers to symbols in the tcl library and *NIX
linkers resolve dependencies from left to right.
gregcouchplain2006-02-16 15:16:08
File Added - 167661: d
hobbsplain2010-08-14 03:43:41
I haven't found a system linker where this is true testing with tktable.  What system showed this behavior?
hobbs Pending ticket [1432696fff]. [History diff]2010-08-14 03:43:42
andreas_kupriesplain2010-08-14 04:38:24
Could this be an issue with static linking, opposed to usage of stubs ?
nijtmansplain2010-08-14 10:46:40
Looking at the patch, it reverses the order of linking the Tcl
and Tk stub libraries. Tk's stub library accesses Tcl's stub
library, but the extension being compiled will do it as well,
so in practice it will never be a problem.

I don't think this is a bug, but just a style issue. It looks
better to always link Tk-related things before Tcl-related
things, but that's all
sf-robotplain2010-09-30 02:23:04
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.

Attachments: