Sujet : Re: Where to put dll's in starkits
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tclDate : 20. Jun 2025, 09:19:02
Autres entêtes
Message-ID : <yga7c16bzbd.fsf@akutech.de>
References : 1 2
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
* Robert Heller <
heller@deepsoft.com>
| Needing to put dlls in "bin" under MS-Windows is specific to MS-Windows, when
| the dlls are searched for and loaded my MS-Windows itself and I think only
| applied to Tcl itself being in a dll (shared library).
Check
https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-orderfor the standard search path for DLLs on Windows, paragraph
Standard search order for unpackaged apps
The fact that there are DLLs in bin/ is due to topic 7, search "the
folder from which the app loaded".
BUT: this applies *only* to DLLs which the app requires to run at all
(run-time linker). Anything you directly 'load' via TCLs [load] command
can be located anywhere in the file system (if thoses DLLs indirectly
require other DLLs, the search path as above kicks in again, and here
I'm not certain whether point 7 also holds for "the folder where the DLL
was loaded from").
HTH
R'