News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

"Required from here" Error Message

Started by NightOfFear, June 02, 2013, 03:16:51 PM

Previous topic - Next topic

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


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


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


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


The line in the code that this message relates to is


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


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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

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.