aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-03-22 15:07:16 +0200
committerLuca Barbato <lu_zero@gentoo.org>2011-03-23 01:23:21 +0100
commite971d81364e93feae8c399075a3be2643192e031 (patch)
tree419858f67a2490e440e29c260fc838d7c3be3639 /doc
parent15c5156d245af4c16ac4b1895495818ecdda2e41 (diff)
downloadffmpeg-e971d81364e93feae8c399075a3be2643192e031.tar.gz
Document usage of import libraries created by dlltool
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/general.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/general.texi b/doc/general.texi
index f6c61a2342..1bce042569 100644
--- a/doc/general.texi
+++ b/doc/general.texi
@@ -1005,6 +1005,12 @@ libavutil/pixdesc.h you should have:
extern __declspec(dllimport) const AVPixFmtDescriptor av_pix_fmt_descriptors[];
@end example
+Note that using import libraries created by dlltool requires
+the linker optimization option to be set to
+"References: Keep Unreferenced Data (/OPT:NOREF)", otherwise
+the resulting binaries will fail during runtime. This isn't
+required when using import libraries generated by lib.exe.
+
@subsection Cross compilation for Windows with Linux
You must use the MinGW cross compilation tools available at