Author Topic: "Required from here" Error Message  (Read 11185 times)

Offline NightOfFear

  • Single posting newcomer
  • *
  • Posts: 5
"Required from here" Error Message
« on: June 02, 2013, 03:16:51 pm »
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

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
}

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

Thanks,
Peter.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: "Required from here" Error Message
« Reply #1 on: June 02, 2013, 03:44:57 pm »
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...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: "Required from here" Error Message
« Reply #2 on: June 02, 2013, 06:15:45 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline NightOfFear

  • Single posting newcomer
  • *
  • Posts: 5
Re: "Required from here" Error Message
« Reply #3 on: June 06, 2013, 03:34:24 am »
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.