Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when i use it in C++ sserver,it it constantly show that fatal error: adl_serializer.hpp: No such file or directory #3404

Closed
kevenlau opened this issue Mar 24, 2022 · 3 comments
Labels
state: needs more info the author of the issue needs to provide more details

Comments

@kevenlau
Copy link

when i see this error,i change my path.but it never works.it showed a similar issue.

@nlohmann
Copy link
Owner

In order to asses your issue, we need the following information:

  • What is the issue you have?

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?

  • What is the expected behavior?

  • And what is the actual behavior instead?

  • Which compiler and operating system are you using? Is it a supported compiler?

  • Did you use a released version of the library or the version from the develop branch?

  • If you experience a compilation error: can you compile and run the unit tests?

@nlohmann nlohmann added state: needs more info the author of the issue needs to provide more details and removed kind: bug labels Mar 24, 2022
@gregmarr
Copy link
Contributor

This sounds like you're using the multiple header files version, but you're including the nlohmann directory in your include path. The other header files are included as #include <nlohmann/adl_serializer.hpp>, so if your include path is set to json_install_dir/include/nlohmann instead of just json_install_dir/include, then the compiler is looking for json_install_dir/include/nlohmann/nlohmann/adl_serializer.hpp which doesn't exist. Remove the nlohmann from the compiler include path if it's there.

@nlohmann
Copy link
Owner

@kevenlau Can you please provide more information on the issue?

@nlohmann nlohmann closed this as completed Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs more info the author of the issue needs to provide more details
Projects
None yet
Development

No branches or pull requests

3 participants