You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try compiling your voxglitch plugin with GCC-11 (linux) I get the following errors:
src/Common/AudioFile.h:586:73: error: ‘numeric_limits’ is not a member of ‘std’
586 | sample = (T) sampleAsInt / static_cast<float> (std::numeric_limits<std::int32_t>::max());
...
I was able to fix it with the following:
diff --git a/src/Common/AudioFile.h b/src/Common/AudioFile.h
index 1eda1f0..766f8e3 100644
--- a/src/Common/AudioFile.h+++ b/src/Common/AudioFile.h@@ -31,6 +31,7 @@
#include <unordered_map>
#include <iterator>
#include <algorithm>
+#include <limits>
// disable some warnings on Windows
#if defined (_MSC_VER)
Header dependency changes
Some C++ Standard Library headers have been changed to no longer include other headers that they do need to depend on. As such, C++ programs that used standard library components without including the right headers will no longer compile.
The following headers are used less widely in libstdc++ and may need to be included explicitly when compiled with GCC 11:
• <limits> (for std::numeric_limits)
• <memory> (for std::unique_ptr, std::shared_ptr etc.)
• <utility> (for std::pair, std::tuple_size, std::index_sequence etc.)
• <thread> (for members of namespace std::this_thread.)
The text was updated successfully, but these errors were encountered:
When I try compiling your voxglitch plugin with GCC-11 (linux) I get the following errors:
I was able to fix it with the following:
Based on the following from: https://www.gnu.org/software/gcc/gcc-11/porting_to.html
The text was updated successfully, but these errors were encountered: