User forums > Using Code::Blocks

"Required from here" Error Message

(1/1)

NightOfFear:
I am using Code::Blocks 10.05 on Debian 7.0.0.

When I build a program, the result says that there is one error message.  I am taking that to be the one red line in the Build Log.  However that line simple says


--- Code: ---In instantiation of 'std::vector< Triangle > CTwoDTriangulation::delaunayDiv(const std::vector< Point_<T> > & vP, cv::Rect boundRect,
    std::vector<Triangle>& triangles, int& numTriangles, bool lookRight)'
required from here

--- End code ---

It is not clear to me what the compiler is complaining about.  The next line is about a signed/unsigned integer expression comparison.

The function is defined thus


--- Code: ---template<class T>
vector< Triangle > CTwoDTriangulation::delaunayDiv(const vector< Point_<T> > & vP, cv::Rect boundRect,
    vector<Triangle>& triangles, int& numTriangles, bool lookRight){
// Some code
}

--- End code ---

The line in the code that this message relates to is


--- Code: ---            leftTriangles=delaunayDiv((const vector< Point_<unsigned int> >)vP, boundRect,
                leftTriangles, numLeftTriangles, false);    // Don't look right

--- End code ---

Thanks,
Peter.

BlueHazzard:
1) This is not the whole error message. Look at build log, the error output from c::b is sometimes not fully exact
2) This is a compiler issue, and this is a IDE forum, so the wrong place to ask such questions... i think this topic is going to be locked...

stahta01:
Turn on Full Compiler Logging and find a site that Supports your compiler post the full build log and errors.

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Tim S.

NightOfFear:
Thank you for your replies.  The problem was mainly that the program was not swapping bytes properly and the same array was getting freed twice.  Seems it had nothing to do with the error message.

Thanks,
Peter.

Navigation

[0] Message Index

Go to full version