Hi tux,

2013/08/13 Tue 5:41:44 UTC+9 tux. wrote:
> Weirdly, Vim fails to build with ActiveTcl 8.6.0.0 on MSVC2010, saying
> 
> _Tcl_FindExecutable is an "unresolved symbol"...?

I found the following lines in the C:\Tcl86\include\tclDecls.h:

#if defined(USE_TCL_STUBS)
#   undef Tcl_CreateInterp
#   undef Tcl_FindExecutable

I don't know why Tcl_FindExecutable is undefined, but this is the cause of
the linkage error.
Attached patch seems to fix this problem, but I'm not sure this is
the right solution because I'm not familiar with Tcl.

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


# HG changeset patch
# Parent bf06863be498f6339cd3c5f885b1654149f11d07
diff --git a/src/if_tcl.c b/src/if_tcl.c
--- a/src/if_tcl.c
+++ b/src/if_tcl.c
@@ -156,6 +156,11 @@
 #  define DYNAMIC_TCL_VER "8.3"
 # endif
 
+# ifndef Tcl_FindExecutable /* work around for Tcl 8.6 */
+#  define Tcl_FindExecutable \
+	(tclStubsPtr->tcl_FindExecutable)
+# endif
+
 # ifndef  DYNAMIC_TCL /* Just generating prototypes */
 typedef int HANDLE;
 # endif

Raspunde prin e-mail lui