Skip to content

Error around htonll #11

@AndreyMlashkin

Description

@AndreyMlashkin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions