You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I am interested in using your code for face segmentation in a university project. However I am running into a compilation error:
/tmp/ccgviTss.o: In function `main': main.cpp:(.text+0x63): undefined reference to `face_detection(cv::Mat&)' . collect2: error: ld returned 1 exit status
I don't understand why that is because the function is clearly declared and defined. I was running into similar issues with the cv and boost functions but I managed to fix that by linking the libraries. The command I am running is:
!g++ main.cpp -o main -lboost_system `pkg-config --cflags --libs opencv`
I am running this from a Google Colaboratory notebook and all of the dependencies should have been installed successfully.
The text was updated successfully, but these errors were encountered:
Hello! I am interested in using your code for face segmentation in a university project. However I am running into a compilation error:
/tmp/ccgviTss.o: In function `main': main.cpp:(.text+0x63): undefined reference to `face_detection(cv::Mat&)' . collect2: error: ld returned 1 exit status
I don't understand why that is because the function is clearly declared and defined. I was running into similar issues with the cv and boost functions but I managed to fix that by linking the libraries. The command I am running is:
!g++ main.cpp -o main -lboost_system `pkg-config --cflags --libs opencv`
I am running this from a Google Colaboratory notebook and all of the dependencies should have been installed successfully.
The text was updated successfully, but these errors were encountered: