Repository navigation
|
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: |
Replies: 3 comments 7 replies
|
Can this be an issue with your compiler/linker setup? |
|
I made a self-contained test case: https://github.com/usvi/nlohmannjsontest See the output: janne@shell:/tmp$ git clone git@github.com:usvi/nlohmannjsontest.git So, the strings are inside the binaries. What can I do? |
It's probably from
asserts. Try including-DNDEBUGand-O2.