On 25/11/11 08:41, Vladimir Eremeev wrote:
On Thu, 24 Nov 2011 15:38:39 -0800
"Ronald S. Bultje"<[email protected]>  wrote:

Hi,

On Thu, Nov 24, 2011 at 2:11 AM, Vladimir Eremeev<[email protected]>  wrote:
Please, see attachment.

This function is needed for development in MS Visual Studio, win32/64, because
the exported array av_pix_fmt_descriptors[] is recognized as a function, not as 
data.

Do you know why it does that?
Sorry, my fault.
I've studied the produced DLL with the Dependency Walker, which seems to show
everything as a function, either C or C++. It has icons, defining only 
functions.

Anyway, there is another problem - in name decorations.

I use this array in the C++ code, the header is included as

extern "C" {
#include<libavutil/pixdesc.h>
}

And the compiler expects the underscore in the beginning of the name.
But Mingw didn't produce underscore for av_pix_fmt_descriptors.

I have compiled libav using MingW-W64 on Linux, but use it in windows.

I had to produce import libraries for visual studio by myself using the lib.exe 
utility,
because 'make' had made several failed calls to the lib.exe, which is obviously
missing in linux:

Strange, our build system does not use lib.exe to generated imports but mingw ld/dlltool

If you really want to use lib.exe you can just copy it and have the binfmt supporting it through wine. You might have better result using our tree btw.

lu

--

Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to