I got this error when I have tried to compile on lubuntu 16.04

34: error: expected ‘)’ before ‘host_16bits’
inline uint16_t htole16(uint16_t host_16bits)

using clion, is there any guide on how to debug on linux using clion?


CLion only supports using the CMake build system. However Bitcoin Core uses the autotools build system. Without some special configuring, it is unlikely that you will be able to build Bitcoin Core using CLion as the default CMake config will need to be modified to work with Bitcoin Core.

Instead of using CLion to build and debug it, you should be able to build Bitcoin Core in a terminal and then execute the resulting binary in CLion's debugger.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.