[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with C++ needed



Or, possibly, in more than one patch.

Patrick Baggett <baggett.patrick@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@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@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 20131212170028.GA18121@an3as.eu" target="_blank">http://lists.debian.org/[🔎] 20131212170028.GA18121@an3as.eu



Reply to: