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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 to
CvImage::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
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
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