thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Riley <mikeri...@yelirekim.com>
Subject Re: Error while Compiling
Date Tue, 06 Dec 2011 21:44:32 GMT
You need the HAVE_NETINET_IN_H macro here.. I think you just made a typo / copy paste error
Jake.

On Dec 6, 2011, at 11:41 AM, Jake Farrell <jfarrell@apache.org> wrote:

> Your error of htons, htonl, ntohs, ntohl means you are missing the netinet/in.h include
which is wrapped in a typedef in Thrift.h in the cpp lib. Adding the following to your compile
line should help you -DHAVE_INTTYPES_H -DHAVE_INTTYPES_H
> 
> 
> g++ -DHAVE_INTTYPES_H -DHAVE_INTTYPES_H -Wall -I/usr/local/include/thrift *.cpp -lthrift
-o something
> 
> 
> -Jake
> 
> 
> On Dec 6, 2011, at 9:45 AM, Summer nguyen wrote:
> 
>> I am new to Thrift .
>> I am using CentOS, and "maybe" install Thrift succesfully.
>> I can use thrift to generate codes.
>> But Follow the instruction: 
>> http://wiki.apache.org/thrift/ThriftUsageC%2B%2B I get the Error while 
>> compile the Something_server.cpp Someone know pls help me to find out 
>> the reason.
>> I have no idea. Thank you very much
>> I attach the error .
>> <error.txt>
> 

Mime
View raw message