Skip to content

header include order #36881

Answered by Osyotr
willie asked this question in Q&A
Feb 20, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

My quick search over linux packages revealed that:

  1. Some distributions install includes into includes/cryptopp/ (notably RHEL)
  2. Some distributions install includes into includes/crypto++/ (notably Debian)
  3. None of them provide cmake configs, but all of them provide pkg-config files
  4. None of them add cryptopp or crypto++ to the includes directories.

You probably should use #include <cryptopp/*.h> instead of #include <*.h> in your project.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@willie
Comment options

Answer selected by willie
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants