Menu

DEV C++ and OpenCV

2008-05-25
2012-09-26
  • Jorge Leandro

    Jorge Leandro - 2008-05-25

    I have just had both DEV C++ and the OpenCV library installed and configured according to the tutorial at:
    http://opencvlibrary.sourceforge.net/DevCpp

    To begin with, I successfully compiled all accompanying OpenCV sample .c and .cpp files within DEV, but one. This one is a short example to show how to use new-style image classes declared in cxcore.hpp, a header including definitions and declarations for a new class named cvImage.

    The cxcore headers and libs have been linked in accordance with the aforementioned tutorial, however the compilation does not get to the end, moreover displaying these messages:
    "[Linker error] undefined reference to CvImage::show(char const*)' [Linker error] undefined reference toCvImage::load(char const, char const, int)'
    ld returned 1 exit status"

    I would appreciate any hint on how to solve such a problem.
    Best regards,
    Jorge

     
    • cpns

      cpns - 2008-05-25

      Post the complete log text from the Compile Log tab.

      Compilation has completed, because linking does not occur until compilation of all project modules has succeeded. Link failure is most commonly caused by failing to link a necessary library.

      Clifford

       
    • Kip

      Kip - 2008-05-25

      You might want to check where in the source those two methods are defined. Then check which library they are compiled into. Then check if that library is being linked against. If they are part of HighGUI, then you'll have to link against that. I don't think the CvImage stuff is though.

      Kip

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.