pboettch / json-schema-validator

JSON schema validator for JSON for Modern C++
Other
470 stars 135 forks source link

ld.lld: error: undefined symbol: __throw_bad_array_new_length() and __libc_single_threaded #176

Closed Marco-Israel closed 2 years ago

Marco-Israel commented 2 years ago

Linker errors

ld.lld: error: undefined symbol: std::__throw_bad_array_new_length()
>>> referenced by json-validator.cpp

and

ld.lld: error: undefined symbol: __libc_single_threaded
>>> referenced by json-validator.cpp

Im including your lib by

target_link_libraries(
projectName
...
nlohmann_json_schema_validator
)
pboettch commented 2 years ago

To help, I'd need much more information.

How do you compile? Which OS? Which compiler? and much more.

Marco-Israel commented 2 years ago

Hello and thanks for quick response. I can compile my opjects but I cannot link it (because of the linker error above). In this case Im using a Debian:Bullseye inside docker with standard stdlibc++ and gnu gcc v10.

I can compile and link it on my Archlinx. So I think Im missing a lib or so on inside the container.. (but the glibc++ is avialable, so I have no idea) ... I will test it on a WSL-Debian now.

pboettch commented 2 years ago

Could you describe your compile process in detail, step-by-step? Are you using CMake?