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

‘string’ in namespace ‘std’ does not name a type in cstring #25

Open
techwday opened this issue Jul 26, 2021 · 2 comments
Open

Comments

@techwday
Copy link

When trying to compile in Ubuntu 21.04 I get the following error with regards to cstring. If I add #include to MerkleCommitment.hpp then the library compiles.

In file included from src/protocols/Ali/common_details/common.hpp:4,
                 from src/protocols/Ali/common_details/common.cpp:1:
src/protocols/common/CryptoCommitment/MerkleCommitment.hpp:17:10: error: ‘string’ in namespace ‘std’ does not name a type
   17 |     std::string toString()const;
      |          ^~~~~~
src/protocols/common/CryptoCommitment/MerkleCommitment.hpp:9:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
    8 | #include <set>
  +++ |+#include <string>
    9 | 
@lovely-necromancer
Copy link

same here.
just created a PR to address this: #28

@rcolomina
Copy link

Just add the include please #include <string>, it solves the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants