Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
33d37f49
Commit
33d37f49
authored
Feb 28, 2018
by
Davis King
Browse files
Added FAQ notes about ODR violations.
parent
0ef08bb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
docs/docs/faq.xml
docs/docs/faq.xml
+31
-0
No files found.
docs/docs/faq.xml
View file @
33d37f49
...
@@ -7,6 +7,37 @@
...
@@ -7,6 +7,37 @@
<!-- ************************************************************************* -->
<!-- ************************************************************************* -->
<questions
group=
"General"
>
<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?"
>
<question
text=
"It doesn't work?"
>
Do not post a question like "I'm using dlib, and it doesn't work?" or
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?".
"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