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=33&rev2=34

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
-       $(CXX) -Wall $(INC) -c $< -o $@
+       g++ -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 

Reply via email to