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
## problem
reference to 'shared_ptr' is ambiguous
## solve
shared_ptr => boost::shared_ptr
Tutorial
Undefined symbols for architecture x86_64
## add CXXFLAGS
-stdlib=libstdc++
最后更新于
这有帮助吗?