I have a problem.
Here’s the error:
undefined symbols for architecture x86_64
” cvloadimage” ,referenced from:_main in main.o
How can I solve it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The function is named
cvLoadImage(). Remember: C is a case-sensitive programming language.This function is implemented in libopencv_highgui.dylib, you better link your application with it. Make sure your OpenCV libraries are also
x86_64, else the linking won’t work. To check their architecture execute a command-line tool namedfileon them.You can force the build of your application to be 32bits by specifying
-arch i386 -m 32, if you are using gcc.