Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dlib LNK2001 unresolved external symbol USER_ERROR__inconsistent_build_configuration__see_dlib_faq_2

Tags:

c++

linker

dlib

I am trying to implement the DLIB 19.15 library to my app. I generated the dlib project for Windows Visual Studio 15 2017 Win64 and made a Release build using CMAKE. In the project I have added directories and additional dependencies.

But during compilation I have following error

LNK2001 unresolved external symbol USER_ERROR__inconsistent_build_configuration__see_dlib_faq_2

How Can I solve this problem?

like image 499
Tigran Karapetyan Avatar asked Oct 20 '25 01:10

Tigran Karapetyan


1 Answers

Meet the same problem. You need to add one cpp file named dlib_path\dlib\all\source.cpp from the dlib source directory to your project and re-compile it. Do not copy it to your project path, just add it from dlib source directory.

like image 187
yan zhang Avatar answered Oct 21 '25 15:10

yan zhang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!