Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#4641 After build the dynamic lib, there is no TclpInitLock symbol

obsolete: 8.5.7
closed-invalid
Jan Nijtmans
None
9
2010-06-14
2010-06-12
blackcat
No

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 "TclpInitLock" symbol in the lib.

Discussion

  • blackcat
    blackcat
    2010-06-12

    • priority: 5 --> 9
     
  • Jan Nijtmans
    Jan Nijtmans
    2010-06-14

    The key here is "my code", which apparently calls TclpInitLock() somewhere. Well, this function
    is MODULE_SCOPE, so it is not meant to be called from outside, it's only for Tcl's internal
    use.

    If you want to use some locking in your code, use Tcl_MutexLock() and Tcl_MutexUnlock()
    in stead.

     
  • Jan Nijtmans
    Jan Nijtmans
    2010-06-14

    • assigned_to: nobody --> nijtmans
    • status: open --> closed-invalid