Closed JosueGauthier closed 1 year ago
Hard to tell what's the source of the error there. Try out different modes with nlohmann_json
installed from your package manager, with it downloaded from FetchContent
, with shared/static library. Make sure you have a clean build environment everytime, etc. If all else fails, try my PR #262, although it should not touch any of the logic over there, and record every system variable you have (g++/make/cmake/ninja versions etc.). If you can make it reprpoducible in a VM/docker, that would help us know what's going on there.
Hi, I ask to someone, and he solves this issue by making a simple make file and it works perfectly. Its seems there is a problem in the cmake but honestly I don't understand well the cmake files to tell you where he changes something. Thanks again,
Note that you will have to maintain the makefile manually if you choose that approach. In #262 I have tried to fix most integration issues that newcomers will encounter and make it as straightforward as possible.
If you have any questions on how to configure/run a cmake project/library, do speak up because that will help us make the documentations as accessible as possible. We often forget what are the most fundamental steps that need to be documented as we take for granted much of the cmake basic after working with it for so long.
Hello,
I have some troubles in trying to use the lib. I have installed this according to the README but when I launch the Ctest i have 11 tests failed.
But I continued and I try to import it and run an example but i get the error :
undefined reference to `nlohmann::json_schema::json_validator::json_validator(...)
So i compile it, it works, but when i try to link it get this error :
So i checked via ld :
I'm a little bit a lost and I found almost nothing on internet... Thanks