Zookeeper C client compilation error-Kung Fu Panda-blog Park zookeeper C client compilation Error

Source: Internet
Author: User
Tags zookeeper client

Zookeeper C client compilation error-Kung Fu Panda-blog

Zookeeper C client compilation Error

Compile the zookeeper ClientProgramThe following compilation error occurs:

/Usr/local/include/zookeeper/Recordio. h: 76: Error: Expected unqualified-ID before '_ extension __'
/Usr/local/include/zookeeper/Recordio. h: 76: Error: Expected ') 'before' _ extension __'
/Usr/local/include/zookeeper/Recordio. h: 76: Error: Expected unqualified-ID before ') 'token

Solution in http://blog.csdn.net/falcon2000/article/details/6895784

Recordio. h: 76 declares the htonll function. Other files may have macro definitions for htonll. The modifications are as follows:

# Ifndef htonllint64_t htonll (int64_t V );# Endif

The following compilation error occurs when writing the zookeeper client program:

/Usr/local/include/zookeeper/Recordio. h: 76: Error: Expected unqualified-ID before '_ extension __'
/Usr/local/include/zookeeper/Recordio. h: 76: Error: Expected ') 'before' _ extension __'
/Usr/local/include/zookeeper/Recordio. h: 76: Error: Expected unqualified-ID before ') 'token

Solution in http://blog.csdn.net/falcon2000/article/details/6895784

Recordio. h: 76 declares the htonll function. Other files may have macro definitions for htonll. The modifications are as follows:

 
# Ifndef htonllint64_t htonll (int64_t V );# Endif
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.