I install perl-5.40.0 via perlbrew and then tried to install Wx with
cpanm. I get the follow error.
g++ -pthread -c -I. -I..
-I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0
-I/usr/include/wx-3.0 -I. -I.
-I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0
-I/usr/include/wx-3.0 -I. -I../..
-I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0
-I/usr/include/wx-3.0 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.01\"
-DXS_VERSION=\"0.01\" -fPIC
"-I/home/shawn/perl5/perlbrew/perls/perl-5.40.0/lib/5.40.0/x86_64-linux-gnu-thread-multi/CORE"
-DWXPL_EXT -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DWXPL_EXT
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ PropertyGrid.c
PropertyGrid.c: In function ‘void
XS_Wx__ColourProperty_SetPlValue(PerlInterpreter*, CV*)’:
PropertyGrid.c:27187:49: error: call of overloaded
‘wxVariant(wxColour&)’ is ambiguous
27187 | wxVariant value = wxVariant(*col);
| ^
In file included from ../../cpp/helpers.h:19,
from ../../cpp/wxapi.h:170,
from PropertyGrid.c:23:
/usr/include/wx-3.0/wx/variant.h:187:5: note: candidate:
‘wxVariant::wxVariant(bool, const wxString&)’
187 | wxVariant(bool val, const wxString& name = wxEmptyString);
| ^~~~~~~~~
/usr/include/wx-3.0/wx/variant.h:111:5: note: candidate:
‘wxVariant::wxVariant(const wxAny&)’
111 | wxVariant(const wxAny& any);
| ^~~~~~~~~
It looks like a simple fix. I wonder what it was before.
--
𝑆𝒉𝒂𝒘𝒏 𝐻 𝐶𝒐𝒓𝒆𝒚 🇨🇦