[Debian-med-packaging] Help with C++ needed

Joseph Gunn armadefuego at yahoo.com
Thu Dec 12 17:16:54 UTC 2013


Or, possibly, in more than one patch.

Patrick Baggett <baggett.patrick at gmail.com> wrote:

>Hi Andreas,
>
>I'm pretty decent at C++. The lines 120 and 134 contain the same function
>prototype, i.e. the return value is the same, the name is the same, and the
>parameter count/type/number are the same. The compiler cannot tell which
>version of the function to use. I can't access the git repo via http for
>some reason, but this has been illegal in C++ since the start, so it's not
>just "old code, new compiler" sort of problem. Check to see if there are
>conditional compilations around these function definitions.
>
>Patrick
>
>
>On Thu, Dec 12, 2013 at 11:00 AM, Andreas Tille <andreas at an3as.eu> wrote:
>
>> Hi,
>>
>> I try to build a new version of Ball and adapted old patches to the new
>> version and also created a new patch but the following issue exceeds my
>> poor C++ knowledge:
>>
>> ...
>> In file included from
>> /tmp/buildd/ball-1.4.2/source/DATATYPE/GRAPH/treeWidth.C:1:0:
>> /tmp/buildd/ball-1.4.2/include/BALL/DATATYPE/GRAPH/treeWidth.h: At global
>> scope:
>> /tmp/buildd/ball-1.4.2/include/BALL/DATATYPE/GRAPH/treeWidth.h:130:16:
>> error: 'static BALL::Size
>> BALL::TreeWidth<UndirectedGraph>::computeTreeWidth(const
>> TreeDecomposition&)' cannot be overloaded
>>     static Size computeTreeWidth(TreeDecomposition const& td);
>>                 ^
>> /tmp/buildd/ball-1.4.2/include/BALL/DATATYPE/GRAPH/treeWidth.h:120:16:
>> error: with 'static BALL::Size
>> BALL::TreeWidth<UndirectedGraph>::computeTreeWidth(const
>> TreeDecomposition&)'
>>     static Size computeTreeWidth(TreeDecomposition const& td);
>>                 ^
>> /tmp/buildd/ball-1.4.2/include/BALL/DATATYPE/GRAPH/treeWidth.h:134:9:
>> error: 'void
>> BALL::TreeWidth<UndirectedGraph>::writeGraphvizFile(std::ostream&, const
>> TreeDecomposition&)' cannot be overloaded
>>     void writeGraphvizFile(std::ostream& out, TreeDecomposition const& td);
>>          ^
>> /tmp/buildd/ball-1.4.2/include/BALL/DATATYPE/GRAPH/treeWidth.h:124:9:
>> error: with 'void
>> BALL::TreeWidth<UndirectedGraph>::writeGraphvizFile(std::ostream&, const
>> TreeDecomposition&)'
>>     void writeGraphvizFile(std::ostream& out, TreeDecomposition const& td);
>>          ^
>> ...
>>
>> The packaging I'm talking about is at
>>
>>     git://git.debian.org/git/debian-med/ball.git
>>
>> and works with git-buildpackage.
>>
>> Any help is welcome
>>
>>        Andreas.
>>
>> --
>> http://fam-tille.de
>>
>>
>> --
>> To UNSUBSCRIBE, email to debian-mentors-REQUEST at lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact
>> listmaster at lists.debian.org
>> Archive: http://lists.debian.org/20131212170028.GA18121@an3as.eu
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20131212/e1490e2f/attachment-0001.html>


More information about the Debian-med-packaging mailing list