summaryrefslogtreecommitdiffstats
path: root/doc/load.n
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-02-10 09:53:53 (GMT)
committerhobbs <hobbs>2000-02-10 09:53:53 (GMT)
commit7f5e420c3e6cba41b5e710be95437aa5acaf4712 (patch)
tree2fbde2902883192c0fdc75ecf382055ebe622363 /doc/load.n
parent6eb6479cb14c409190e21647d7bcc652aaa17a33 (diff)
downloadtcl-7f5e420c3e6cba41b5e710be95437aa5acaf4712.zip
tcl-7f5e420c3e6cba41b5e710be95437aa5acaf4712.tar.gz
tcl-7f5e420c3e6cba41b5e710be95437aa5acaf4712.tar.bz2
* doc/load.n: added notes about dll load errors on Windows
Diffstat (limited to 'doc/load.n')
-rw-r--r--doc/load.n24
1 files changed, 16 insertions, 8 deletions
diff --git a/doc/load.n b/doc/load.n
index e0deb20..b375b9d 100644
--- a/doc/load.n
+++ b/doc/load.n
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: load.n,v 1.3 1999/12/04 06:15:26 hobbs Exp $
+'\" RCS: @(#) $Id: load.n,v 1.4 2000/02/10 09:53:53 hobbs Exp $
'\"
.so man.macros
.TH load n 7.5 Tcl "Tcl Built-In Commands"
@@ -106,19 +106,27 @@ different files have been \fBload\fRed with different versions of
the package, Tcl picks the file that was loaded first.
.VE
+.SH "PORTABILITY ISSUES"
+.TP
+\fBWindows\fR\0\0\0\0\0
+.
+When a load fails with "library not found" error, it is also possible
+that a dependent library was not found. To see the dependent libraries,
+type ``dumpbin -imports <dllname>'' in a DOS console to see what the
+library must import.
+When loading a DLL in the current directory, Windows will ignore ``./'' as
+a path specifier and use a search heuristic to find the DLL instead.
+To avoid this, load the DLL with
+.CS
+ load [file join [pwd] mylib.DLL]
+.CE
+
.SH BUGS
.PP
If the same file is \fBload\fRed by different \fIfileName\fRs, it will
be loaded into the process's address space multiple times. The
behavior of this varies from system to system (some systems may
detect the redundant loads, others may not).
-.PP
-When loading a DLL in the current directory, NT will ignore ``./'' as
-a path specifier and use a search heuristic to find the DLL instead.
-To avoid this, load the DLL with
-.CS
- load [file join [pwd] mylib.DLL]
-.CE
.SH "SEE ALSO"
\fBinfo sharedlibextension\fR, Tcl_StaticPackage, safe(n)