Link problem with tcl85.lib(ActiveTCL pre-compiled distribution) in VC2010

Posted by shang on 2011-08-12 01:18

I want to use Tcl_CreateCommand to add functions to TCL, but when I link my C++ program with tcl85.lib in VS2010, the linker can not find symbol _Tcl_CreateCommand in tcl85.lib. I open tcl85.lib and find symbols are without the prefix '_', so only Tcl_CreateCommand can be found.

I use the binary installation package to install ActiveState ActiveTcl, so I guess maybe the lib files included in the package is not compatible with VC compiler.

Is there any possibility to make this work??