Bug 1771

Summary: Patch for error: unable to find numeric literal operator 'operator""Q'
Product: PulseView Reporter: Ronny Habel <sigrok>
Component: Build systemAssignee: Nobody <nobody>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unreleased development snapshot   
Target Milestone: ---   
Hardware: x86   
OS: Linux   
Attachments: patch for the problem

Description Ronny Habel 2022-01-28 21:59:25 CET
Created attachment 761 [details]
patch for the problem

on a fresh (january 2022) installed and fully patched Ubuntu 20.04 with fresh compiled mxe I got a lot of errors while compiling pulseview:
/home/sigrok/mxe-git/usr/i686-w64-mingw32.static.posix/include/boost/math/special_functions/erf.hpp:966:13: error: unable to find numeric literal operator 'operator""Q'
             BOOST_MATH_BIG_CONSTANT(T, 113, 0.11005507545746069573608988651927452e-7),
/home/sigrok/mxe-git/usr/i686-w64-mingw32.static.posix/include/boost/math/special_functions/erf.hpp:966:13: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes

I seems, that adding 
to CMakeLists.txt is not enough. 
So I have to add a 
add_definitions(-fext-numeric-literals) as well:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7791b1b..83985bd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -488,6 +488,7 @@ add_definitions(-D__STDC_LIMIT_MACROS)
 add_definitions(-Wall -Wextra)
        add_definitions(-Wa,-mbig-obj -O3)