Comments (11)
Since KFR 5.1.0 (just pushed to dev) std::is_pod
isn't used, so the C4996 warning/error should gone.
from kfr.
C4996 is a warning not an error.
Do you have 'Treat warnings as errors' setting turned on or /WX
flag in your project? Anyway, you can suppress this warning to continue using latest VS2022.
As for the deprecation itself, this will be fixed in the next release of KFR.
from kfr.
Indeed, I see it's a warning and not an error. 'Treat warnings as errors' is set to 'No'. I will try to suppress it.
Thank you for the reply
from kfr.
I'd like to add how to reproduce:
Create an empty C++ project > add KFR path to include directories > set language to C++ latest > create main.cpp and add the code from my post.
from kfr.
Thank you once again! I tested it here, KFR 5.1.0 doesn't have those warnings. However, I get a compile error in Release x64
when I have the following code with Platform toolset VS22 v143:
#include "kfr/all.hpp"
int main() {
univector<f32, 127> taps;
const expression_handle<f32> window = kfr::to_handle<expression_blackman_harris<f32>>(kfr::window_blackman_harris<f32>(taps.size()));
return 0;
}
It shows error C1001:
PathToKfr\kfr\include\kfr\math\impl\sin_cos.hpp(61): fatal error C1001: Internal compiler error.
It compiles in Debug x64
/std:c++latest, VS2022 - 17.7.2, KFR 5.1.0
if Platform toolset = LLVM (clang-cl), it works fine (Debug and Release)
The compiler options when Release x64 (KfrTests.cpp is where my main is):
/permissive- /ifcOutput "x64\Release\" /GS /GL /W3 /Gy /Zc:wchar_t /Zi /Gm- /O2 /sdl /Fd"x64\Release\vc143.pdb" /Zc:inline /fp:precise /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /D "_CRT_SECURE_NO_WARNINGS" /errorReport:prompt /WX- /Zc:forScope /Gd /Oi /MD /std:c++latest /FC /Fa"x64\Release\" /EHsc /nologo /Fo"x64\Release\" /Fp"x64\Release\KfrTests.pch" /diagnostics:column
from kfr.
The compiler error mentioned in my previous message only happens if C/C++ > Optimization > Inline Function Expansion
is enabled (it came enabled by default when I created an empty VS C++ project).
Only when Inline Function Expansion
is Disabled (/Ob0)
, the compiler error doesn't occur.
from kfr.
Could you provide the exact version of VS compiler? cl --version
in VS shell.
from kfr.
Could you provide the exact version of VS compiler?
cl --version
in VS shell.
Yes. Compiler version: 19.37.32822 for x86.
VS is 17.7.2, version 4.8.09032.
from kfr.
The fix for Visual Studio compiler error has been implemented in dev
branch. Could you test it in your environment?
from kfr.
It works in my environment. I compiled it in Debug and Release x64 mode. The compiler error was fixed. Thank you.
from kfr.
The ICE has been fixed using more robust method. Already in main
. Please pull new changes in case this ICE happens again.
from kfr.
Related Issues (20)
- biquad_filter processing HOT 6
- linker error for convolve_filter HOT 1
- I can't make the examples work HOT 9
- zpk2tf, tf2zpk representation HOT 4
- Asymmetric Hann window HOT 3
- Polyphase filter bank HOT 2
- Internal compiler error HOT 3
- Minimum dft size HOT 1
- KFR Roadmap HOT 7
- Slow DFT (much slower than FFTW or IPP) HOT 2
- Building with clang-10 leads to warnings HOT 2
- Build failed on arm64 with -DKFR_ENABLE_CAPI_BUILD=ON in capi/CMakeFiles/kfr_capi.dir/capi.cpp.o HOT 9
- Cannot link kfr_dft
- Example request: FIR Overlap-Add
- Unable to properly link kfr_dft HOT 9
- Combine FIR filters in parallel HOT 2
- undefined reference to `void kfr::sse2::dft_initialize HOT 10
- using std::complex HOT 1
- [Planner Flags] FFTW_* option equivalent HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kfr.