On 11/4/2011 16:14, Ruben Van Boxem wrote: > Op 4 nov. 2011 08:23 schreef "Shiju Sasi" <[email protected]> het > volgende: >> >> Hi, >> >> Here are the exact list of warnings/errors. >> >> >> 1>AveVideoControl.exp : warning LNK4078: multiple '.drectve' sections > found with different attributes (00000200) >> >> 1>libavcodec.a(utils.o) : warning LNK4217: locally defined symbol > _isprint imported in function _av_get_codec_tag_string >> >> 1>libx264.a(common.o) : warning LNK4217: locally defined symbol __iob > imported in function _x264_log_default >> >> 1>libavutil.a(log.o) : warning LNK4049: locally defined symbol __iob > imported >> >> 1>libx264.a(common.o) : warning LNK4217: locally defined symbol __stricmp > imported in function _x264_param_parse >> >> 1>libx264.a(common.o) : warning LNK4217: locally defined symbol > __strnicmp imported in function _x264_param_default_preset >> >> 1>libmingwex.a(wcrtomb.o) : warning LNK4217: locally defined symbol > ___lc_codepage imported in function _wcsrtombs >> >> 1>libmingwex.a(mbrtowc.o) : warning LNK4049: locally defined symbol > ___lc_codepage imported >> >> 1>libmingwex.a(wcrtomb.o) : warning LNK4217: locally defined symbol > ___mb_cur_max imported in function _wcsrtombs >> >> 1>libmingwex.a(mbrtowc.o) : warning LNK4049: locally defined symbol > ___mb_cur_max imported >> >> 1>libavutil.a(eval.o) : warning LNK4217: locally defined symbol _isspace > imported in function _av_expr_parse >> >> 1>libavcodec.a(utils.o) : error LNK2019: unresolved external symbol > __imp__toupper referenced in function _ff_toupper4 >> >> 1>libavutil.a(dict.o) : error LNK2001: unresolved external symbol > __imp__toupper >> >> 1>libavutil.a(avstring.o) : error LNK2001: unresolved external symbol > __imp__toupper >> >> 1>libx264.a(encoder.o) : error LNK2019: unresolved external symbol > __imp___fstat referenced in function _x264_encoder_open_118 >> >> 1>libx264.a(ratecontrol.o) : error LNK2001: unresolved external symbol > __imp___fstat >> >> 1>libavutil.a(log.o) : error LNK2019: unresolved external symbol > __imp___vsnprintf referenced in function _av_log_default_callback >> >> 1>libavutil.a(avstring.o) : error LNK2001: unresolved external symbol > __imp___vsnprintf >> >> 1>.\ReleaseMinDependency\AveVideoControl.dll : warning LNK4088: image > being generated due to /FORCE option; image may not run > > You're trying to use MSVC to link with GCC's static libraries, which is > impossible. To use x264 with MSVC, you need the dll and you will have to > use the def file to produce a lib import file. I'm not sure if I'm missing > a detail here (like linking the x264 dll with -static or not), but what > you're trying its quite impossible... >
Right, why not just use the same compiler for both code? You won't need to deal with object codes that are potentially incompatible (nothing in the C standard says object code between compilers should be compatible). Another alternate way is to use ffmpeg DLLs, this way you can isolate compiler implementations and stick to an established DLL interface.
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
