<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">ср, 24 окт. 2018 г. в 13:13, Carl Eugen Hoyos <<a href="mailto:ceffmpeg@gmail.com">ceffmpeg@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2018-10-24 2:42 GMT+02:00, Anton Shekhovtsov <<a href="mailto:shekh.anton@gmail.com" target="_blank">shekh.anton@gmail.com</a>>:<br>
> Hi,<br>
> I begin to build ffmpeg with VC 2015 and have difficulty with cpu specific<br>
> features.<br>
><br>
> For example this code (libavutil\float_dsp.c)<br>
><br>
>     if (ARCH_AARCH64)<br>
>         ff_float_dsp_init_aarch64(fdsp);<br>
>     if (ARCH_ARM)<br>
>         ff_float_dsp_init_arm(fdsp);<br>
>     if (ARCH_PPC)<br>
>         ff_float_dsp_init_ppc(fdsp, bit_exact);<br>
>     if (ARCH_X86)<br>
>         ff_float_dsp_init_x86(fdsp);<br>
>     if (ARCH_MIPS)<br>
>         ff_float_dsp_init_mips(fdsp);<br>
><br>
> The problem: all these functions are referenced and reported as<br>
> unresolved symbols at linking.<br>
<br>
Iirc, the reason is that you added some specific compiler options that<br>
make linking fail, default compilation is supposed to work fine.<br>
(Dead code elimination is needed since forever for successful<br>
FFmpeg compilation.)<br>
<br>
Carl Eugen<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a></blockquote><div><br></div><div> It seems I have to use "optimize for size", found it in configure too (_cflags_noopt="-O1").</div><div>I setup project/solution from scratch because I want to use it in the IDE, so I don't use configure.</div><div>"Optimize size" does eliminate code, but I never used it before. Hope it is less obtrusive for debug than O2.</div><div><br></div></div></div></div>