Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fails on OSX 10.9 #2

Open
emschwartz opened this issue Apr 10, 2014 · 2 comments
Open

Make fails on OSX 10.9 #2

emschwartz opened this issue Apr 10, 2014 · 2 comments

Comments

@emschwartz
Copy link

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;
             ^
@nbphuoc
Copy link

nbphuoc commented Oct 27, 2014

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

@DaveAppleton
Copy link

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

try renaming the three instances with mutexx instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants