kfrlib / kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
https://www.kfrlib.com
GNU General Public License v2.0
1.62k stars 248 forks source link

MSVC build error #170

Closed MatthieuMv closed 1 year ago

MatthieuMv commented 1 year ago

When building for MSVC 2022 version 5.0.1, the inclusion of one these headers break a static assert:

#include <kfr/io/audiofile.hpp>
#include <kfr/io/file.hpp>

In function ctype_name() from ctti.hpp: static_assert(length > 0, "");

Thank you

dancazarin commented 1 year ago

Hello @MatthieuMv , I couldn't reproduce this in the latest MSVC 2022 with default settings. To reproduce and fix this issue more information is needed. Please answer the following questions to be able to proceed. What is the exact version of MSVC 2022? (cl command in Visual Studio command prompt will print the exact version) Do you use cmake project or Visual Studio solution? Have you set c++17 standard (or later)? Is this static assertion the only error that occurs when including the files you mentioned? Does it occur with a new project with default settings?

dancazarin commented 1 year ago

Closed due to inactivity. Feel free to reopen if the problem still exists.