Can anybody explain the following errors given by linux while compiling DemoClient.cpp?
    I wanted to use Thrift API for hbase so i started compiling example programs given by them but i am getting following errors
 ========================================ERRORS==========================   
    g++ -o DemoClient -I/usr/local/include/thrift  -I./gen-cpp -L/usr/local/lib -lthrift DemoClient.cpp ./gen-cpp/Hbase.cpp ./gen-cpp/Hbase_types.cpp ./gen-cpp/Hbase_constants.cpp
    g++: ./gen-cpp/Hbase.cpp: No such file or directory
    g++: ./gen-cpp/Hbase_types.cpp: No such file or directory
    g++: ./gen-cpp/Hbase_constants.cpp: No such file or directory
    In file included from /usr/local/include/protocol/TProtocol.h:23,
                     from /usr/local/include/protocol/TBinaryProtocol.h:23,
                     from DemoClient.cpp:37:
    /usr/local/include/transport/TTransport.h:34: error: expected constructor, destructor, or type conversion before ‘readAll’
    /usr/local/include/transport/TTransport.h:107: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:111: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:124: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:128: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:139: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:156: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TTransport.h:160: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TTransport.h:172: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:214: error: expected ‘;’ before ‘*’ token
    /usr/local/include/transport/TTransport.h:218: error: expected ‘;’ before ‘virtual’
    /usr/local/include/transport/TTransport.h:218: error: ‘uint8_t’ declared as a ‘virtual’ field
    /usr/local/include/transport/TTransport.h:218: error: expected ‘;’ before ‘*’ token
    /usr/local/include/transport/TTransport.h:231: error: expected ‘;’ before ‘void’
    /usr/local/include/transport/TTransport.h:231: error: ‘uint32_t’ has not been declared
    /usr/local/include/transport/TTransport.h:235: error: ‘uint32_t’ has not been declared
    /usr/local/include/transport/TTransport.h: In member function ‘void apache::thrift::transport::TTransport::write(int)’:
    /usr/local/include/transport/TTransport.h:158: error: ‘buf’ was not declared in this scope
    /usr/local/include/transport/TTransport.h:158: error: ‘len’ was not declared in this scope
    In file included from /usr/local/include/protocol/TBinaryProtocol.h:23,
                     from DemoClient.cpp:37:
    /usr/local/include/protocol/TProtocol.h: At global scope:
    /usr/local/include/protocol/TProtocol.h:184: error: expected constructor, destructor, or type conversion before ‘skip’
    /usr/local/include/protocol/TProtocol.h:305: error: ‘uint32_t’ does not name a type
    /usr/local/include/protocol/TProtocol.h:309: error: ‘uint32_t’ does not name a type
    /usr/local/include/protocol/TProtocol.h:312: error: ‘uint32_t’ does not name a type
    /usr/local/include/protocol/TProtocol.h:314: error: ‘uint32_t’ does not name a type
    /usr/local/include/protocol/TProtocol.h:316: error: ‘uint32_t’ does not name a type
    /usr/local/include/protocol/TBinaryProtocol.h:208: error: expected ‘;’ before ‘*’ token
    /usr/local/include/protocol/TBinaryProtocol.h: In constructor ‘apache::thrift::protocol::TBinaryProtocolT<Transport_>::TBinaryProtocolT(boost::shared_ptr<X>)’:
    /usr/local/include/protocol/TBinaryProtocol.h:51: error: class ‘apache::thrift::protocol::TBinaryProtocolT<Transport_>’ does not have any field named ‘string_buf_’
    /usr/local/include/protocol/TBinaryProtocol.h: In constructor ‘apache::thrift::protocol::TBinaryProtocolT<Transport_>::TBinaryProtocolT(boost::shared_ptr<X>, int32_t, int32_t, bool, bool)’:
    /usr/local/include/protocol/TBinaryProtocol.h:65: error: class ‘apache::thrift::protocol::TBinaryProtocolT<Transport_>’ does not have any field named ‘string_buf_’
    /usr/local/include/protocol/TBinaryProtocol.h: In destructor ‘apache::thrift::protocol::TBinaryProtocolT<Transport_>::~TBinaryProtocolT()’:
    /usr/local/include/protocol/TBinaryProtocol.h:69: error: ‘string_buf_’ was not declared in this scope
    In file included from /usr/local/include/protocol/TBinaryProtocol.h:24,
                     from DemoClient.cpp:37:
    /usr/local/include/protocol/TVirtualProtocol.h: At global scope:
    /usr/local/include/protocol/TVirtualProtocol.h: In instantiation of ‘apache::thrift::protocol::TVirtualProtocol<apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>, apache::thrift::protocol::TProtocolDefaults>’:
    /usr/local/include/protocol/TBinaryProtocol.h:37:   instantiated from ‘apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>’
    /usr/local/include/protocol/TBinaryProtocol.h:259:   instantiated from here
    /usr/local/include/protocol/TVirtualProtocol.h:554: error: no members matching ‘apache::thrift::protocol::TProtocolDefaults::readBool’ in ‘class apache::thrift::protocol::TProtocolDefaults’
    In file included from DemoClient.cpp:37:
    /usr/local/include/protocol/TBinaryProtocol.h: In instantiation of ‘apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>’:
    /usr/local/include/protocol/TBinaryProtocol.h:259:   instantiated from here
    /usr/local/include/protocol/TBinaryProtocol.h:178: error: no members matching ‘apache::thrift::protocol::TVirtualProtocol<apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>, apache::thrift::protocol::TProtocolDefaults>::readBool’ in ‘class apache::thrift::protocol::TVirtualProtocol<apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>, apache::thrift::protocol::TProtocolDefaults>’
    In file included from /usr/local/include/protocol/TBinaryProtocol.h:277,
                     from DemoClient.cpp:37:
    /usr/local/include/protocol/TBinaryProtocol.tcc:31: error: expected constructor, destructor, or type conversion before ‘TBinaryProtocolT’
     ‘TBinaryProtocolT’
    In file included from /usr/local/include/protocol/TBinaryProtocol.h:277,
                     from DemoClient.cpp:37:
    
    /usr/local/include/protocol/TBinaryProtocol.tcc:348: error: expected constructor, destructor, or type conversion before ‘TBinaryProtocolT’
    /usr/local/include/protocol/TBinaryProtocol.tcc:356: error: expected constructor, destructor, or type conversion before ‘TBinaryProtocolT’
    
    /usr/local/include/transport/TVirtualTransport.h:56: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TVirtualTransport.h:59: error: expected ‘;’ before ‘*’ token
    /usr/local/include/transport/TVirtualTransport.h:62: error: expected ‘;’ before ‘void’
    /usr/local/include/transport/TVirtualTransport.h:62: error: ‘uint32_t’ has not been declared
    /usr/local/include/transport/TVirtualTransport.h: In member function ‘void apache::thrift::transport::TTransportDefaults::write(int)’:
    /usr/local/include/transport/TVirtualTransport.h:57: error: ‘buf’ was not declared in this scope
    /usr/local/include/transport/TVirtualTransport.h:57: error: ‘len’ was not declared in this scope
    /usr/local/include/transport/TVirtualTransport.h: At global scope:
    /usr/local/include/transport/TVirtualTransport.h:94: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TVirtualTransport.h:98: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TVirtualTransport.h:102: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TVirtualTransport.h:106: error: ‘uint8_t’ declared as a ‘virtual’ field
    /usr/local/include/transport/TVirtualTransport.h:106: error: expected ‘;’ before ‘*’ token
    /usr/local/include/transport/TVirtualTransport.h:110: error: expected ‘;’ before ‘virtual’
    /usr/local/include/transport/TVirtualTransport.h:110: error: ‘uint32_t’ has not been declared
    /usr/local/include/transport/TVirtualTransport.h:124: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TVirtualTransport.h: In member function ‘virtual void apache::thrift::transport::TVirtualTransport<Transport_, Super_>::write_virt(int)’:
    /usr/local/include/transport/TVirtualTransport.h:103: error: ‘buf’ was not declared in this scope
    /usr/local/include/transport/TVirtualTransport.h:103: error: ‘len’ was not declared in this scope
    In file included from DemoClient.cpp:38:
    /usr/local/include/transport/TSocket.h: At global scope:
    /usr/local/include/transport/TSocket.h:100: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TSocket.h:105: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TSocket.h:110: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TSocket.h:216: error: expected ‘;’ before ‘*’ token
    /usr/local/include/transport/TSocket.h:237: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TSocket.h:290: error: ‘sockaddr_in’ does not name a type
    /usr/local/include/transport/TSocket.h:291: error: ‘sockaddr_in6’ does not name a type
    In file included from /usr/local/include/transport/TTransportUtils.h:29,
                     from DemoClient.cpp:39:
    /usr/local/include/transport/TBufferTransports.h:62: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TBufferTransports.h:75: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TBufferTransports.h:94: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TBufferTransports.h:107: error: expected ‘;’ before ‘*’ token
    DemoClient.cpp:315: error: expected ‘;’ at end of input
    DemoClient.cpp:315: error: expected ‘}’ at end of input
    In file included from /usr/local/include/transport/TTransportUtils.h:29,
                     from DemoClient.cpp:39:
    
    /usr/local/include/transport/TBufferTransports.h:102: error: expected ‘}’ at end of input
    /usr/local/include/transport/TBufferTransports.h:102: error: expected ‘}’ at end of input
    /usr/local/include/transport/TBufferTransports.h:102: error: expected ‘}’ at end of input
    make: *** [DemoClient] Error 1
===================================================================   
    
    ****Please help me regarding this.
    i updated lib files with stdint.h
    but still i am getting above errors
    
    thanks in advance****


Can anybody explain the following errors given by linux while compiling DemoClient.cpp?
===

    I wanted to use Thrift API for hbase so i started compiling example programs given by them but i am getting following errors
 ========================================ERRORS==========================   
    g++ -o DemoClient -I/usr/local/include/thrift  -I./gen-cpp -L/usr/local/lib -lthrift DemoClient.cpp ./gen-cpp/Hbase.cpp ./gen-cpp/Hbase_types.cpp ./gen-cpp/Hbase_constants.cpp
    g++: ./gen-cpp/Hbase.cpp: No such file or directory
    g++: ./gen-cpp/Hbase_types.cpp: No such file or directory
    g++: ./gen-cpp/Hbase_constants.cpp: No such file or directory
    In file included from /usr/local/include/protocol/TProtocol.h:23,
                     from /usr/local/include/protocol/TBinaryProtocol.h:23,
                     from DemoClient.cpp:37:
    /usr/local/include/transport/TTransport.h:34: error: expected constructor, destructor, or type conversion before ‘readAll’
    /usr/local/include/transport/TTransport.h:107: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:111: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:124: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:128: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:139: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:156: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TTransport.h:160: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TTransport.h:172: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TTransport.h:214: error: expected ‘;’ before ‘*’ token
    /usr/local/include/transport/TTransport.h:218: error: expected ‘;’ before ‘virtual’
    /usr/local/include/transport/TTransport.h:218: error: ‘uint8_t’ declared as a ‘virtual’ field
    /usr/local/include/transport/TTransport.h:218: error: expected ‘;’ before ‘*’ token
    /usr/local/include/transport/TTransport.h:231: error: expected ‘;’ before ‘void’
    /usr/local/include/transport/TTransport.h:231: error: ‘uint32_t’ has not been declared
    /usr/local/include/transport/TTransport.h:235: error: ‘uint32_t’ has not been declared
    /usr/local/include/transport/TTransport.h: In member function ‘void apache::thrift::transport::TTransport::write(int)’:
    /usr/local/include/transport/TTransport.h:158: error: ‘buf’ was not declared in this scope
    /usr/local/include/transport/TTransport.h:158: error: ‘len’ was not declared in this scope
    In file included from /usr/local/include/protocol/TBinaryProtocol.h:23,
                     from DemoClient.cpp:37:
    /usr/local/include/protocol/TProtocol.h: At global scope:
    /usr/local/include/protocol/TProtocol.h:184: error: expected constructor, destructor, or type conversion before ‘skip’
    /usr/local/include/protocol/TProtocol.h:305: error: ‘uint32_t’ does not name a type
    /usr/local/include/protocol/TProtocol.h:309: error: ‘uint32_t’ does not name a type
    /usr/local/include/protocol/TProtocol.h:312: error: ‘uint32_t’ does not name a type
    /usr/local/include/protocol/TProtocol.h:314: error: ‘uint32_t’ does not name a type
    /usr/local/include/protocol/TProtocol.h:316: error: ‘uint32_t’ does not name a type
    /usr/local/include/protocol/TBinaryProtocol.h:208: error: expected ‘;’ before ‘*’ token
    /usr/local/include/protocol/TBinaryProtocol.h: In constructor ‘apache::thrift::protocol::TBinaryProtocolT<Transport_>::TBinaryProtocolT(boost::shared_ptr<X>)’:
    /usr/local/include/protocol/TBinaryProtocol.h:51: error: class ‘apache::thrift::protocol::TBinaryProtocolT<Transport_>’ does not have any field named ‘string_buf_’
    /usr/local/include/protocol/TBinaryProtocol.h: In constructor ‘apache::thrift::protocol::TBinaryProtocolT<Transport_>::TBinaryProtocolT(boost::shared_ptr<X>, int32_t, int32_t, bool, bool)’:
    /usr/local/include/protocol/TBinaryProtocol.h:65: error: class ‘apache::thrift::protocol::TBinaryProtocolT<Transport_>’ does not have any field named ‘string_buf_’
    /usr/local/include/protocol/TBinaryProtocol.h: In destructor ‘apache::thrift::protocol::TBinaryProtocolT<Transport_>::~TBinaryProtocolT()’:
    /usr/local/include/protocol/TBinaryProtocol.h:69: error: ‘string_buf_’ was not declared in this scope
    In file included from /usr/local/include/protocol/TBinaryProtocol.h:24,
                     from DemoClient.cpp:37:
    /usr/local/include/protocol/TVirtualProtocol.h: At global scope:
    /usr/local/include/protocol/TVirtualProtocol.h: In instantiation of ‘apache::thrift::protocol::TVirtualProtocol<apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>, apache::thrift::protocol::TProtocolDefaults>’:
    /usr/local/include/protocol/TBinaryProtocol.h:37:   instantiated from ‘apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>’
    /usr/local/include/protocol/TBinaryProtocol.h:259:   instantiated from here
    /usr/local/include/protocol/TVirtualProtocol.h:554: error: no members matching ‘apache::thrift::protocol::TProtocolDefaults::readBool’ in ‘class apache::thrift::protocol::TProtocolDefaults’
    In file included from DemoClient.cpp:37:
    /usr/local/include/protocol/TBinaryProtocol.h: In instantiation of ‘apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>’:
    /usr/local/include/protocol/TBinaryProtocol.h:259:   instantiated from here
    /usr/local/include/protocol/TBinaryProtocol.h:178: error: no members matching ‘apache::thrift::protocol::TVirtualProtocol<apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>, apache::thrift::protocol::TProtocolDefaults>::readBool’ in ‘class apache::thrift::protocol::TVirtualProtocol<apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>, apache::thrift::protocol::TProtocolDefaults>’
    In file included from /usr/local/include/protocol/TBinaryProtocol.h:277,
                     from DemoClient.cpp:37:
    /usr/local/include/protocol/TBinaryProtocol.tcc:31: error: expected constructor, destructor, or type conversion before ‘TBinaryProtocolT’
     ‘TBinaryProtocolT’
    In file included from /usr/local/include/protocol/TBinaryProtocol.h:277,
                     from DemoClient.cpp:37:
    
    /usr/local/include/protocol/TBinaryProtocol.tcc:348: error: expected constructor, destructor, or type conversion before ‘TBinaryProtocolT’
    /usr/local/include/protocol/TBinaryProtocol.tcc:356: error: expected constructor, destructor, or type conversion before ‘TBinaryProtocolT’
    
    /usr/local/include/transport/TVirtualTransport.h:56: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TVirtualTransport.h:59: error: expected ‘;’ before ‘*’ token
    /usr/local/include/transport/TVirtualTransport.h:62: error: expected ‘;’ before ‘void’
    /usr/local/include/transport/TVirtualTransport.h:62: error: ‘uint32_t’ has not been declared
    /usr/local/include/transport/TVirtualTransport.h: In member function ‘void apache::thrift::transport::TTransportDefaults::write(int)’:
    /usr/local/include/transport/TVirtualTransport.h:57: error: ‘buf’ was not declared in this scope
    /usr/local/include/transport/TVirtualTransport.h:57: error: ‘len’ was not declared in this scope
    /usr/local/include/transport/TVirtualTransport.h: At global scope:
    /usr/local/include/transport/TVirtualTransport.h:94: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TVirtualTransport.h:98: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TVirtualTransport.h:102: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TVirtualTransport.h:106: error: ‘uint8_t’ declared as a ‘virtual’ field
    /usr/local/include/transport/TVirtualTransport.h:106: error: expected ‘;’ before ‘*’ token
    /usr/local/include/transport/TVirtualTransport.h:110: error: expected ‘;’ before ‘virtual’
    /usr/local/include/transport/TVirtualTransport.h:110: error: ‘uint32_t’ has not been declared
    /usr/local/include/transport/TVirtualTransport.h:124: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TVirtualTransport.h: In member function ‘virtual void apache::thrift::transport::TVirtualTransport<Transport_, Super_>::write_virt(int)’:
    /usr/local/include/transport/TVirtualTransport.h:103: error: ‘buf’ was not declared in this scope
    /usr/local/include/transport/TVirtualTransport.h:103: error: ‘len’ was not declared in this scope
    In file included from DemoClient.cpp:38:
    /usr/local/include/transport/TSocket.h: At global scope:
    /usr/local/include/transport/TSocket.h:100: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TSocket.h:105: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TSocket.h:110: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TSocket.h:216: error: expected ‘;’ before ‘*’ token
    /usr/local/include/transport/TSocket.h:237: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TSocket.h:290: error: ‘sockaddr_in’ does not name a type
    /usr/local/include/transport/TSocket.h:291: error: ‘sockaddr_in6’ does not name a type
    In file included from /usr/local/include/transport/TTransportUtils.h:29,
                     from DemoClient.cpp:39:
    /usr/local/include/transport/TBufferTransports.h:62: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TBufferTransports.h:75: error: ‘uint32_t’ does not name a type
    /usr/local/include/transport/TBufferTransports.h:94: error: expected ‘,’ or ‘...’ before ‘*’ token
    /usr/local/include/transport/TBufferTransports.h:107: error: expected ‘;’ before ‘*’ token
    DemoClient.cpp:315: error: expected ‘;’ at end of input
    DemoClient.cpp:315: error: expected ‘}’ at end of input
    In file included from /usr/local/include/transport/TTransportUtils.h:29,
                     from DemoClient.cpp:39:
    
    /usr/local/include/transport/TBufferTransports.h:102: error: expected ‘}’ at end of input
    /usr/local/include/transport/TBufferTransports.h:102: error: expected ‘}’ at end of input
    /usr/local/include/transport/TBufferTransports.h:102: error: expected ‘}’ at end of input
    make: *** [DemoClient] Error 1
===================================================================   
    
    ****Please help me regarding this.
    i updated lib files with stdint.h
    but still i am getting above errors
    
    thanks in advance****

