-
Hello, Whenever I do #include <nlohmann/json.hpp> the library imprints the full path of the header file to the binary. This essentially destroys path-independent builds, for example in Yocto. How do I configure or modify the library NOT to print anything as this path? EDIT1: EDIT2: Minimal test case: main.cpp:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Can this be an issue with your compiler/linker setup? |
Beta Was this translation helpful? Give feedback.
-
I made a self-contained test case: https://github.com/usvi/nlohmannjsontest See the output: janne@shell:/tmp$ git clone [email protected]:usvi/nlohmannjsontest.git So, the strings are inside the binaries. What can I do? |
Beta Was this translation helpful? Give feedback.
-
I extended the README, see #4496. |
Beta Was this translation helpful? Give feedback.
It's probably from
assert
s. Try including-DNDEBUG
and-O2
.