You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by Apache Wiki <wi...@apache.org> on 2012/08/13 20:38:14 UTC
[Thrift Wiki] Trivial Update of "ThriftUsageC++" by ChrisLansman
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Thrift Wiki" for change notification.
The "ThriftUsageC++" page has been changed by ChrisLansman:
http://wiki.apache.org/thrift/ThriftUsageC%2B%2B?action=diff&rev1=34&rev2=35
Comment:
the .o compilation needed these -D or else we received compilation errors for ‘ntohl' was not declared in this scope.
all: something_server something_client
%.o: %.cpp
- g++ -Wall -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H $(INC) -c $< -o $@
+ $(CXX) -Wall -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H $(INC) -c $< -o $@
something_server: Something_server.o $(GEN_OBJ)
$(CXX) $^ -o $@ -L/usr/local/lib -lthrift