Subject: | Perl-Wx can not be built with STL variants of wxWidgets |
Date: | Fri, 7 Oct 2016 02:32:14 +0200 |
To: | <bug-Wx [...] rt.cpan.org> |
From: | Stefan Bruens <stefan.bruens [...] rwth-aachen.de> |
Hi
Trying to build perl-Wx against wxWidgets 3.0.2 STL fails as the wxUSE_STL
build disables several implicit conversions from wxString to wxChar.
http://docs.wxwidgets.org/trunk/classwx_string.html :
----
Note - If you built wxWidgets with wxUSE_STL set to 1, the implicit
conversions to both narrow and wide C strings are disabled and replaced with
implicit conversions to std::string and std::wstring.
----
E.g.:
In file included from DocView.c:24:0:
cpp/docview.h:483:46: error: no matching function for call to
'wxClassInfo::wxClassInfo(const wxString&, wxClassInfo*, NULL, long unsigned
int, wxObject* (*)())'
...
/usr/include/wx-3.0/wx/rtti.h:46:5: note: candidate:
wxClassInfo::wxClassInfo(const wxChar*, const wxClassInfo*, const
wxClassInfo*, int, wxObjectConstructorFn)
Best would be to fix perl-Wx, but at least a statement on the homepage would
be nice about which wxWidget configurations are supported/working.
Kind regards,
Stefan
--
Stefan Brüns / Bergstraße 21 / 52062 Aachen
home: +49 241 53809034 mobile: +49 151 50412019
work: +49 2405 49936-424