Skip to content
Tcl Source Code View Ticket
Login

View Ticket

After build the dynamic lib,no TclpInitLibraryPath symbol

Closed / Invalid3020000fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2010-06-23 03:54:33
I build the tcl in windows via the command "nmake -f makefile.vc OPTS=threads", build success. But when I used the tcl8.*.lib in my code, there is the link error. There is not "TclFindEncodings" and "TclpInitLock" symbol in the lib. You told me use Tcl_MutexLock to instead of TclpInitLock. But which one I should use to instead of TclFindEncodings??

I have another question that I used tcl8.3 before, and these symbol can be used in 8.3 release, why I can not use in the latest release?
blackcat242plain2010-06-23 11:01:31
sorry, the symbol that i can not find in the lib is TclpInitLibraryPath, not TclFindEncodings
blackcat242 Ticket [3020000fff]: 1 change [History diff]2010-06-23 11:01:32
nijtmansplain2010-06-23 12:52:43
allow_comments - 1

My answer is: please use the public Tcl API. Apparently, your application
uses internal API functions, which are not meant to be called from outside
of Tcl. The problem with that is that those functions are undocumented
and might change between Tcl releases. So, you are really on your own.

However, initializing a Tcl interpreter from another application is not
difficult. Just use Tcl_Main or Tk_Main (the easiest) or
Tcl_FindExecutable/Tcl_CreateInterpreter/Tcl_Init. You will
find everything you need starting with <http://wiki.tcl.tk/6276>
Log in (anonymous is fine) to add a comment.