From e971d81364e93feae8c399075a3be2643192e031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 22 Mar 2011 15:07:16 +0200 Subject: [PATCH] Document usage of import libraries created by dlltool Signed-off-by: Luca Barbato --- doc/general.texi | 6 ++++++ 1 file changed, 6 insertions(+) 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