Or, possibly, in more than one patch.<br><br>Patrick Baggett <baggett.patrick@gmail.com> wrote:<br><br><div dir="ltr">Hi Andreas,<div><br></div><div>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.</div>
<div><br></div><div>Patrick</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 12, 2013 at 11:00 AM, Andreas Tille <span dir="ltr"><<a href="mailto:andreas@an3as.eu" target="_blank">andreas@an3as.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I try to build a new version of Ball and adapted old patches to the new<br>
version and also created a new patch but the following issue exceeds my<br>
poor C++ knowledge:<br>
<br>
...<br>
In file included from /tmp/buildd/ball-1.4.2/source/DATATYPE/GRAPH/treeWidth.C:1:0:<br>
/tmp/buildd/ball-1.4.2/include/BALL/DATATYPE/GRAPH/treeWidth.h: At global scope:<br>
/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<br>
    static Size computeTreeWidth(TreeDecomposition const& td);<br>
                ^<br>
/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&)'<br>
    static Size computeTreeWidth(TreeDecomposition const& td);<br>
                ^<br>
/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<br>

    void writeGraphvizFile(std::ostream& out, TreeDecomposition const& td);<br>
         ^<br>
/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&)'<br>
    void writeGraphvizFile(std::ostream& out, TreeDecomposition const& td);<br>
         ^<br>
...<br>
<br>
The packaging I'm talking about is at<br>
<br>
    git://<a href="http://git.debian.org/git/debian-med/ball.git" target="_blank">git.debian.org/git/debian-med/ball.git</a><br>
<br>
and works with git-buildpackage.<br>
<br>
Any help is welcome<br>
<br>
       Andreas.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<a href="http://fam-tille.de" target="_blank">http://fam-tille.de</a><br>
<br>
<br>
--<br>
To UNSUBSCRIBE, email to <a href="mailto:debian-mentors-REQUEST@lists.debian.org">debian-mentors-REQUEST@lists.debian.org</a><br>
with a subject of "unsubscribe". Trouble? Contact <a href="mailto:listmaster@lists.debian.org">listmaster@lists.debian.org</a><br>
Archive: <a href="http://lists.debian.org/20131212170028.GA18121@an3as.eu" target="_blank">http://lists.debian.org/20131212170028.GA18121@an3as.eu</a><br>
<br>
</font></span></blockquote></div><br></div>