On 11/7/2011 13:20, Shiju Sasi wrote:
> Hi,
> 
> Do any of you have pointers on the below errors while I compile my windows
> 32 DLL using static CRT ? Deployment of the application has issues, when we
> have dynamic CRTs. Please guide.
> 
> Thanks,
> Shiju

Unlinked compiler objects aren't guaranteed to be compatible, one of the
symptoms are link errors like these. Only well known interfaces like
DLLs are guaranteed to work with other compilers, since to use these
DLLs, would be to conform to platform specifications, object files don't
need to conform to any specification.

The easiest way if you still want to use -MT is to build ffmpeg
libraries as DLLs, and generate the export def from the DLLs with gendef
or similar tools. Next would be to use MSVC lib.exe to generate MSVC
compatible import libraries, you can now link with MSVC, but you need to
distribute the ffmpeg DLLs with your programs.

Otherwise, use GCC or MSVC for all your linking and avoid using other
compilers entirely.

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to