tcl - Linker errors when using SWIG to extendTcl with VisualStudio Express 2012 -


i'm attempting extend tcl writing few functions in c , wrapping them swig. goes until try build c project visual studio express 2012. receive linker errors such this: "error lnk2001: unresolved external symbol __imp__tcl_obj_setvar2". implies can't find tcl.lib; have verified have proper tcl.h , tcl.lib files/folders specfied in visual studio.

i've looked possible solutions, , discovered may have 64-bit/32-bit issue. running on 64-bit machine; tried tcl 8.5 (64-bit version) , got above errors. tried uninstalling tcl , installing 32-bit version of tcl 8.6, same results. using swig 3.0.0 (not sure if 32- or 64-bit...)

i'm not sure try here. suggestions?

having looked @ .lib , .dll files come tcl 8.6 using dumpbin utility looks if tcl library exports symbol _tcl_objsetvar2. linker error refers function imp prefixed suspect swig creating.

what helpful doing search through of code generated swig looking see if function imp_tcl_objsetvar2 defined and/or referenced. me seems more wrapper function swig needs rather issue linking tcl lib doesn't contain imp export anyway.

update

as per comments in addition specifying directory .lib file located in need add actual library configuration properties -> linker -> input -> additional dependancies within visual studio.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -