<H1>Issue</H1>

"tdbcodbc1.1.0.dll" will refuse to load with an error "a depend library may not be found" under the following conditions:

   *   makefile.vc build method
   *   the only visible tcl is included in a starkit (no tcl86t.dll available as single file)

<H1>Problem reason</H1>

"tdbcstublib.c" is compiled without "-DUSE_TCL_STUBS" and build into the library "tdbcstub110.lib".
This library has a dependency to tcl86t.dll.

This library is then linked into tdbcodbc.1.1.0.dll with the source file "tcl86t.lib".

This results in a dependency on tcl86t.dll.
This is not a problem when there is a tcl86t.dll available (no starkit).

The dependency may be verified using the tool Dependency Walker. Just drop the dll into the window and look to the middle pane. It lists "tcl86t.dll".

As a side note, supplying beside the starkit a "tcl86t.dll" stopped my application without any notice when tdbcodbc1.1.0.dll is loaded.

<H1>Manual solution</H1>

Here is my modified build line broken into multiple lines for readability:

<verbatim>
cl -nologo -c /D_ATL_XP_TARGETING  -W3
  -Op -QI0f -O2 -YX

  -DMODULE_SCOPE=extern  -DSTDC_HEADERS -DTCL_THREADS=1
  -DUSE_THREAD_ALLOC=1 -DNDEBUG -DTCL_CFG_OPTIMIZED -DNO_STRTOI64 -DUSE_TCL_STUBS -Zl
  -DSTATIC_BUILD


</verbatim>

(this is ms-vc6 PSDK 2003SP1 32 bit build on a 64 bit windows 10).