ABI mismatch erorr on wxt terminal on the current msys2-windows build (GCC 12) and workaound

Tatsuro MATSUOKA <[email protected]> Thu, 26 May 2022 14:03:57 +0900 (JST)
Newsgroups gmane.comp.graphics.gnuplot.devel
Message-ID <[email protected]>
I updated msys2-mingw64 recently and GCC is upgraded to version 12.
I tried to build gnuplot for windows using  GCC 12 and tried to use the wxt terminal.
gnuplot> set terminal wxt
gnuplot> pl x

Error windows poped up.
URL of  the Screenshot http://tmacchant33.starfree.jp/Files/wxt_ABI_mismatch.png

Fatal Error
Mismatch between the program and library build version 
detected.
The library used 3.0(wchar_t,complier with C++ ABI 1016, wx
containers, compatible with 2.8),
and your program used 3.0 (wchr_t,compiler with C++ ABI
1017, wx containers, compatible with 2.8).

Workaround is to insert " #define __GXX_ABI_VERSION 1016" 
at the top of src/wxt_gui.cpp


--- a/src/wxterminal/wxt_gui.cpp	2022-05-26 12:37:23.464908700 +0900
+++ b/src/wxterminal/wxt_gui.cpp	2022-05-26 13:10:10.970037600 +0900
@@ -88,6 +88,8 @@
  * or multi-threaded operation.
  */
 
+/* avoid mismatch message C++ ABI number*/
+#define __GXX_ABI_VERSION 1016
 
 /* define DEBUG here to have debugging messages in stderr */
 /* #define DEBUG */





Tatsuro



_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta