Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
33d37f49
Commit
33d37f49
authored
Feb 28, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added FAQ notes about ODR violations.
parent
0ef08bb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
faq.xml
docs/docs/faq.xml
+31
-0
No files found.
docs/docs/faq.xml
View file @
33d37f49
...
...
@@ -7,6 +7,37 @@
<!-- ************************************************************************* -->
<questions
group=
"General"
>
<question
text=
"Why do I get USER_ERROR__inconsistent_build_configuration__see_dlib_faq_1?"
>
You are getting this error because you are not compiling all the C++
code in your program with consistent settings. This is a violation of
<a
href=
"https://en.wikipedia.org/wiki/One_Definition_Rule"
>
C++'s One Definition Rule
</a>
.
In this case, you are compiling some translation units with dlib's
assert macros enabled and others with them disabled.
<p>
For reference, the code that generates this error is:
<a
href=
"dlib/all/test_for_odr_violations.h.html"
>
dlib/all/test_for_odr_violations.h
</a>
and
<a
href=
"dlib/all/test_for_odr_violations.cpp.html"
>
dlib/all/test_for_odr_violations.cpp
</a>
.
</p>
</question>
<question
text=
"Why do I get USER_ERROR__inconsistent_build_configuration__see_dlib_faq_2?"
>
You are getting this error because you are not compiling all the C++
code in your program with consistent settings. This is a violation of
<a
href=
"https://en.wikipedia.org/wiki/One_Definition_Rule"
>
C++'s One Definition Rule
</a>
.
In this case, you compiled a standalone copy of dlib with CMake and instead of using
<tt>
make install
</tt>
or
<tt>
cmake --build . --target install
</tt>
to copy the resulting build files somewhere you went
and cherry picked files manually and messed it up. In particular, CMake compiled dlib
with a bunch of settings recorded in the CMake generated config.h file but you instead
are now trying to build more dlib related code with the
<a
href=
"dlib/config.h.html"
>
dlib/config.h
</a>
from source control.
<p>
For reference, the code that generates this error is:
<a
href=
"dlib/all/test_for_odr_violations.h.html"
>
dlib/all/test_for_odr_violations.h
</a>
and
<a
href=
"dlib/all/test_for_odr_violations.cpp.html"
>
dlib/all/test_for_odr_violations.cpp
</a>
.
</p>
</question>
<question
text=
"It doesn't work?"
>
Do not post a question like "I'm using dlib, and it doesn't work?" or
"I'm using the object detector and it doesn't work, what do I do?".
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment