OSDN Git Service

Document usage of import libraries created by dlltool
authorMartin Storsjö <martin@martin.st>
Tue, 22 Mar 2011 13:07:16 +0000 (15:07 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 23 Mar 2011 00:23:21 +0000 (01:23 +0100)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
doc/general.texi

index f6c61a2..1bce042 100644 (file)
@@ -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