I am creating using cmake the solution file with the command line below for Win32 and x64 targets:
cmake -G "Visual Studio 18 2026" -A Win32 -DBUILD_CXXLIBS=ON -DBUILD_PROGRAMS=ON -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON -DWITH_OGG=OFF -DBUILD_SHARED_LIBS=OFF -DINSTALL_MANPAGES=OFF -DWITH_AVX=OFF -DWITH_ASM=OFF
When executing the test_libFLAC project, I have the following error returned on the console:
testing FLAC__stream_decoder_get_link_lengths()... OK testing FLAC__stream_decoder_find_total_samples... Number of samples returned is 0... FAILED, returned wrong number of samples, state = 0 (FLAC__STREAM_DECODER_SEARCH_FOR_METADATA)
In release, it does not fail. Please note I have optimisation for Release build (which I create a separated solution different from the one I copied the command line) and not for Debug build.
I am creating using cmake the solution file with the command line below for Win32 and x64 targets:
cmake -G "Visual Studio 18 2026" -A Win32 -DBUILD_CXXLIBS=ON -DBUILD_PROGRAMS=ON -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON -DWITH_OGG=OFF -DBUILD_SHARED_LIBS=OFF -DINSTALL_MANPAGES=OFF -DWITH_AVX=OFF -DWITH_ASM=OFFWhen executing the test_libFLAC project, I have the following error returned on the console:
testing FLAC__stream_decoder_get_link_lengths()... OK testing FLAC__stream_decoder_find_total_samples... Number of samples returned is 0... FAILED, returned wrong number of samples, state = 0 (FLAC__STREAM_DECODER_SEARCH_FOR_METADATA)In release, it does not fail. Please note I have optimisation for Release build (which I create a separated solution different from the one I copied the command line) and not for Debug build.