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

Error around htonll #11

Open
AndreyMlashkin opened this issue Oct 28, 2022 · 1 comment
Open

Error around htonll #11

AndreyMlashkin opened this issue Oct 28, 2022 · 1 comment

Comments

@AndreyMlashkin
Copy link

It is not possible to compile cpp project at the moment:

$ g++ -o test test.cpp tlv_box.cpp tlv.cpp
tlv_box.cpp: In member function ‘bool tlv::TlvBox::PutLongLongValue(int, long long int)’:
tlv_box.cpp:207:25: error: ‘htonll’ was not declared in this scope; did you mean ‘htonl’?
207 | long long nwvalue = htonll(value);
| ^~~~~~
| htonl
tlv_box.cpp: In member function ‘bool tlv::TlvBox::GetLongLongValue(int, long long int&) const’:
tlv_box.cpp:328:17: error: ‘ntohll’ was not declared in this scope; did you mean ‘ntohl’?
328 | value = ntohll((*(long long *)(itor->second->GetValue())));
| ^~~~~~
| ntohl

@AndreyMlashkin
Copy link
Author

os: Ubuntu Linux 20.04
gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1)

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

1 participant