BuildFromSource

Thrift 0.5.0

invalid operands to binary expression

## problem
error: invalid operands to binary expression ('__bind<int &, sockaddr *&, unsigned int &>' and 'int')
  if (bind(s, res->ai_addr, res->ai_addrlen) == -1) ...
# or
  if (0 == bind(***))

## solve
bind => ::bind

## reference
https://answers.opencv.org/question/98159/cc-client-server-bind/

'tr1/functional' file not found

## problem
 fatal error: 'tr1/functional' file not found

# solve
#if __cplusplus >= 201103L
#include <functional>
#else
#include <tr1/functional>
#endif

reference to 'shared_ptr' is ambiguous

Tutorial

Undefined symbols for architecture x86_64

最后更新于

这有帮助吗?