[Debian-med-packaging] Bug#811866: More C++ help needed (Was: Bug#811866: fixed in hyphy 2.2.6+dfsg-4)
Andreas Tille
andreas at an3as.eu
Sun Aug 14 19:53:33 UTC 2016
Hi again,
On Sat, Aug 13, 2016 at 09:11:52PM +0200, Andreas Tille wrote:
> _HYColor chartColors [HY_CHART_COLOR_COUNT] = {
> {255*.94, 255*.12, 255*.11 },//(Red)
> {255*.41, 255*.46, 255*.91 },//(Evening Blue)
> {255 , 255*.91, 255*.34 },//(Banana)
> {255*.18, 255*.55, 255*.13 },//(Clover)
> {255*.55, 255*.38, 255*.21 },//(Dirt)
> {255*.42, 255*.09, 255*.69 },//(Royal Violet)
> {255*.09, 255*.29, 255*.51 },//(Sea Blue)
> {255 , 255*.57, 255*.09 },//(Orange)
> {255*.67, 255*.67, 255*.67 },//(Concrete)
> {255*.85, 255*.27, 255*.42 } //(Carnation)
> };
>
> the narrowing conversion in this case is absolutely intended here
> obviously. Is there any more elegant solution for these case than
> something like
>
> s:\.\([0-9][0-9]\):\1/100:g
Since there was no answer to this question I just did this since it
seems like a working solution. Unfortunately there are further build
issues I can't deal with:
...
/usr/bin/c++ -DGDK_PIXBUF_ENABLE_BACKEND -D_HYPHY_LIBDIRECTORY_=\"/usr/lib/hyphy\" -D_SLKP_LFENGINE_REWRITE_ -D_SLKP_USE_SSE_INTRINSICS -D__AFYP_REWRITE_BGM__ -D__HYPHYCURL__ -D__HYPHY_64__ -D__HYPHY_GTK__ -D__UNIX__ -I/build/hyphy-2.2.6+dfsg/src/core/include -I/build/hyphy-2.2.6+dfsg/src/lib/Link -I/build/hyphy-2.2.6+dfsg/src/new/include -I/build/hyphy-2.2.6+dfsg/src/gui/include -I/build/hyphy-2.2.6+dfsg/src/gui/include/Components -I/build/hyphy-2.2.6+dfsg/src/gui/include/WindowClasses -I/build/hyphy-2.2.6+dfsg/contrib/gtest-1.7.0/include -I/build/hyphy-2.2.6+dfsg/tests/gtests -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -I/usr/include/gtk-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/build/hyphy-2.2.6+dfsg/src/gui/gtk/include -I/build/hyphy-2.2.6+dfsg/src/gui/gtk/include/Components -I/Developer/Headers/FlatCarbon -g -O2 -fdebug-prefix-map=/build/hyphy-2.2.6+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fpermissive -msse3 -o CMakeFiles/HYPHYGTK.dir/src/gui/HYChartWindow.cpp.o -c /build/hyphy-2.2.6+dfsg/src/gui/HYChartWindow.cpp
/build/hyphy-2.2.6+dfsg/src/gui/HYChartWindow.cpp: In function 'bool ReadDataFromFile(_String, char, _Matrix&, _List&)':
/build/hyphy-2.2.6+dfsg/src/gui/HYChartWindow.cpp:3010:54: error: no matching function for call to '_Formula::_Formula(_String&, NULL, bool)'
_Formula f (*thisString,nil,false);
^
In file included from /build/hyphy-2.2.6+dfsg/src/core/include/parser.h:54:0,
from /build/hyphy-2.2.6+dfsg/src/core/include/batchlan.h:44,
from /build/hyphy-2.2.6+dfsg/src/gui/include/Components/HYTableComponent.h:13,
from /build/hyphy-2.2.6+dfsg/src/gui/include/WindowClasses/HYChartWindow.h:11,
from /build/hyphy-2.2.6+dfsg/src/gui/HYChartWindow.cpp:54:
/build/hyphy-2.2.6+dfsg/src/core/include/formula.h:88:5: note: candidate: _Formula::_Formula(_PMathObj, bool)
_Formula (_PMathObj, bool isAVar = false);
^~~~~~~~
/build/hyphy-2.2.6+dfsg/src/core/include/formula.h:88:5: note: candidate expects 2 arguments, 3 provided
/build/hyphy-2.2.6+dfsg/src/core/include/formula.h:87:5: note: candidate: _Formula::_Formula(_String&, _VariableContainer*, _String*)
_Formula (_String&,_VariableContainer* theParent=nil,_String* errorString = nil);
^~~~~~~~
/build/hyphy-2.2.6+dfsg/src/core/include/formula.h:87:5: note: no known conversion for argument 3 from 'bool' to '_String*'
/build/hyphy-2.2.6+dfsg/src/core/include/formula.h:86:5: note: candidate: _Formula::_Formula()
_Formula (void);
^~~~~~~~
/build/hyphy-2.2.6+dfsg/src/core/include/formula.h:86:5: note: candidate expects 0 arguments, 3 provided
/build/hyphy-2.2.6+dfsg/src/core/include/formula.h:79:9: note: candidate: _Formula::_Formula(const _Formula&)
class _Formula // a computational formula
^~~~~~~~
/build/hyphy-2.2.6+dfsg/src/core/include/formula.h:79:9: note: candidate expects 1 argument, 3 provided
/build/hyphy-2.2.6+dfsg/src/gui/HYChartWindow.cpp: In member function 'virtual void _HYDistributionChartWindow::AddVariable(_String*)':
/build/hyphy-2.2.6+dfsg/src/gui/HYChartWindow.cpp:4530:45: error: no matching function for call to '_Formula::_Formula(_String&, NULL, bool)'
Any hint would be welcome.
Kind regards
Andreas.
--
http://fam-tille.de
More information about the Debian-med-packaging
mailing list