Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined reference to face_detection #7

Open
alexmotoc opened this issue Nov 18, 2018 · 0 comments
Open

Undefined reference to face_detection #7

alexmotoc opened this issue Nov 18, 2018 · 0 comments

Comments

@alexmotoc
Copy link

alexmotoc commented Nov 18, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant