thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jake Farrell <>
Subject Re: Error while Compiling
Date Tue, 06 Dec 2011 16:41:42 GMT
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

g++ -DHAVE_INTTYPES_H -DHAVE_INTTYPES_H -Wall -I/usr/local/include/thrift *.cpp -lthrift -o


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: 
> 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>

View raw message