[flac-dev] FLAC__SSE_OS change

Erik de Castro Lopo mle+la at mega-nerd.com
Sun Jun 26 08:50:41 UTC 2016


lvqcl wrote:

> It doesn't know about uint32_t type, so the definition of cpu_xgetbv_x86() fails.
> It can be fixed by adding "#include share/compat.h" to cpu.c (or by using
> FLAC__uint32 from FLAC/ordinals.h).

Ok, added share/compat.h.

> When I fix this, the following problem occurs:
> 
> error LNK2019: unresolved external symbol ___cpuidex referenced in function _FLAC__cpu_info_x86	libflac_static.lib
> fatal error LNK1120: 1 unresolved externals	flac.exe
> 
> The code
> 
>      if (FLAC__AVX_SUPPORTED)
>          __cpuidex(cpuinfo, level, 0); /* for AVX2 detection */
>      else
>          __cpuid(cpuinfo, level); /* some old compilers don't support __cpuidex */
> 
> adds reference to __cpuidex() even though MSVC2005 doesn't have it
> (according to MSDN, it was added to MSVC 2008 SP1).

That suggests that FLAC__AVX_SUPPORTED is true. Can you set it to false
for MSVC2005?

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list