'placeholders' is ambigous
dezza opened this issue · 4 comments
dezza commented
make throws this error
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tortunnel\" -DVERSION=\"0.3\" -I. -ggdb -g -O2 -MT TorProxy.o -MD -MP -MF .deps/TorProxy.Tpo -c -o TorProxy.o TorProxy.cpp
TorProxy.cpp:44:25: error: reference to 'placeholders' is ambiguous
this, socket, placeholders::error));
^
/usr/local/include/boost/asio/placeholders.hpp:28:11: note: candidate found by name lookup is 'boost::asio::placeholders'
namespace placeholders {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2001:11: note:
candidate found by name lookup is 'std::__1::placeholders'
namespace placeholders
^
TorProxy.cpp:133:34: error: reference to 'placeholders' is ambiguous
boost::bind(torTunnelError, placeholders::error));
^
/usr/local/include/boost/asio/placeholders.hpp:28:11: note: candidate found by name lookup is 'boost::asio::placeholders'
namespace placeholders {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2001:11: note:
candidate found by name lookup is 'std::__1::placeholders'
namespace placeholders
^
TorProxy.cpp:136:7: error: reference to 'placeholders' is ambiguous
placeholders::error));
^
/usr/local/include/boost/asio/placeholders.hpp:28:11: note: candidate found by name lookup is 'boost::asio::placeholders'
namespace placeholders {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2001:11: note:
candidate found by name lookup is 'std::__1::placeholders'
namespace placeholders
^
TorProxy.cpp:221:8: error: reference to 'placeholders' is ambiguous
placeholders::error));
^
/usr/local/include/boost/asio/placeholders.hpp:28:11: note: candidate found by name lookup is 'boost::asio::placeholders'
namespace placeholders {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2001:11: note:
candidate found by name lookup is 'std::__1::placeholders'
namespace placeholders
^
4 errors generated.
make: *** [TorProxy.o] Error 1
To compile I did:
export LD_LIBRARY_PATH=$(brew --prefix openssl)/lib
export CPATH=$(brew --prefix openssl)/include
export PKG_CONFIG_PATH=$(brew --prefix openssl)/lib/pkgconfig
R1seUpon commented
Have you found a solution for that?
Deleted user commented
@R1seUpon, since OP hasnt updated have you found a solution? I'm having the same problem :(
aligrt commented
facing the same problem, someone has found solution? please help
dhasial commented
Newp, I'm having the exact same issue what, 4 years later? This project is definitively dead.