RippleGen icon indicating copy to clipboard operation
RippleGen copied to clipboard

Make fails on OSX 10.9

Open emschwartz opened this issue 11 years ago • 2 comments

Boost 1.55.0_1

149 warnings + the following errors:

ripplegen.cpp:83:51: error: reference to 'mutex' is ambiguous
            boost::unique_lock<boost::mutex> lock(mutex);
                                                  ^
ripplegen.cpp:41:14: note: candidate found by name lookup is 'mutex'
boost::mutex mutex;
             ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__mutex_base:25:24: note:
      candidate found by name lookup is 'std::__1::mutex'
class _LIBCPP_TYPE_VIS mutex
                       ^
ripplegen.cpp:83:51: error: reference to 'mutex' is ambiguous
            boost::unique_lock<boost::mutex> lock(mutex);
                                                  ^
ripplegen.cpp:41:14: note: candidate found by name lookup is 'mutex'
boost::mutex mutex;
             ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__mutex_base:25:24: note:
      candidate found by name lookup is 'std::__1::mutex'
class _LIBCPP_TYPE_VIS mutex
                       ^
ripplegen.cpp:119:43: error: reference to 'mutex' is ambiguous
    boost::unique_lock<boost::mutex> lock(mutex);
                                          ^
ripplegen.cpp:41:14: note: candidate found by name lookup is 'mutex'
boost::mutex mutex;
             ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__mutex_base:25:24: note:
      candidate found by name lookup is 'std::__1::mutex'
class _LIBCPP_TYPE_VIS mutex
                       ^
ripplegen.cpp:119:43: error: reference to 'mutex' is ambiguous
    boost::unique_lock<boost::mutex> lock(mutex);
                                          ^
ripplegen.cpp:41:14: note: candidate found by name lookup is 'mutex'
boost::mutex mutex;
             ^

emschwartz avatar Apr 10 '14 12:04 emschwartz

Samething happened to me. Are you able to fix it?

nbphuoc avatar Oct 27 '14 06:10 nbphuoc

I think that the variable mutex is conflicting with std::mutex

try renaming the three instances with mutexx instead.

DaveAppleton avatar Dec 16 '14 18:12 DaveAppleton