summaryrefslogtreecommitdiffstats
path: root/doc/general.texi
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2010-10-06 03:14:07 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2010-10-06 03:14:07 +0000
commite16c1569c08266b48644e23ca9fa58d87c7f5786 (patch)
tree9d068902fa20b076177321cfa308b158c6398787 /doc/general.texi
parentbc3836a1806295cb929b0edf228dcb6df6945989 (diff)
downloadffmpeg-streaming-e16c1569c08266b48644e23ca9fa58d87c7f5786.zip
ffmpeg-streaming-e16c1569c08266b48644e23ca9fa58d87c7f5786.tar.gz
doc,win32: add note about the use of dllimport for global data in MSVC++
Originally committed as revision 25366 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc/general.texi')
-rw-r--r--doc/general.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/general.texi b/doc/general.texi
index faf2aec..fd5482c 100644
--- a/doc/general.texi
+++ b/doc/general.texi
@@ -990,6 +990,15 @@ of DLL files, but the ones that are actually used to run your application
are the ones with a major version number in their filenames
(i.e. @file{avcodec-51.dll}).
+FFmpeg headers do not declare global data for Windows DLLs through the usual
+dllexport/dllimport interface. Such data will be exported properly while
+building, but to use them in your MSVC++ code you will have to edit the
+appropriate headers and mark the data as dllimport. For example, in
+libavutil/pixdesc.h you should have:
+@example
+extern __declspec(dllimport) const AVPixFmtDescriptor av_pix_fmt_descriptors[];
+@end example
+
@subsection Cross compilation for Windows with Linux
You must use the MinGW cross compilation tools available at
OpenPOWER on IntegriCloud