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