Code Monkey home page Code Monkey logo

solidaritycsg's People

Contributors

mbitsnbites avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

solidaritycsg's Issues

Failure to compile on macOS: "reference to 'mutex' is ambiguous", etc.

macOS 11.4 Big Sur

Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-darwin20.5.0
Thread model: posix
Compiler Errors
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:153:3: error: reference to 'mutex' is ambiguous
  mutex mMutex;
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:32:78: note: candidate found by name lookup is 'std::mutex'
class _LIBCPP_TYPE_VIS _LIBCPP_THREAD_SAFETY_ANNOTATION(capability("mutex")) mutex
                                                                             ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:129:7: note: candidate found by name lookup is 'tthread::mutex'
class mutex {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:154:3: error: reference to 'condition_variable' is ambiguous
  condition_variable mCondition;
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:273:24: note: candidate found by name lookup is 'std::condition_variable'
class _LIBCPP_TYPE_VIS condition_variable
                       ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:265:7: note: candidate found by name lookup is 'tthread::condition_variable'
class condition_variable {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:100:5: error: reference to 'lock_guard' is ambiguous
    lock_guard lock(mMutex);
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:80:1: note: candidate found by name lookup is 'std::lock_guard'
lock_guard
^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:216:7: note: candidate found by name lookup is 'tthread::lock_guard'
class lock_guard {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:100:16: error: reference to 'mutex' is ambiguous
    lock_guard lock(mMutex);
               ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:32:78: note: candidate found by name lookup is 'std::mutex'
class _LIBCPP_TYPE_VIS _LIBCPP_THREAD_SAFETY_ANNOTATION(capability("mutex")) mutex
                                                                             ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:129:7: note: candidate found by name lookup is 'tthread::mutex'
class mutex {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:100:16: error: reference to 'mutex' is ambiguous
    lock_guard lock(mMutex);
               ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:32:78: note: candidate found by name lookup is 'std::mutex'
class _LIBCPP_TYPE_VIS _LIBCPP_THREAD_SAFETY_ANNOTATION(capability("mutex")) mutex
                                                                             ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:129:7: note: candidate found by name lookup is 'tthread::mutex'
class mutex {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:112:5: error: reference to 'lock_guard' is ambiguous
    lock_guard lock(mMutex);
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:80:1: note: candidate found by name lookup is 'std::lock_guard'
lock_guard
^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:216:7: note: candidate found by name lookup is 'tthread::lock_guard'
class lock_guard {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:112:16: error: reference to 'mutex' is ambiguous
    lock_guard lock(mMutex);
               ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:32:78: note: candidate found by name lookup is 'std::mutex'
class _LIBCPP_TYPE_VIS _LIBCPP_THREAD_SAFETY_ANNOTATION(capability("mutex")) mutex
                                                                             ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:129:7: note: candidate found by name lookup is 'tthread::mutex'
class mutex {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:112:16: error: reference to 'mutex' is ambiguous
    lock_guard lock(mMutex);
               ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:32:78: note: candidate found by name lookup is 'std::mutex'
class _LIBCPP_TYPE_VIS _LIBCPP_THREAD_SAFETY_ANNOTATION(capability("mutex")) mutex
                                                                             ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:129:7: note: candidate found by name lookup is 'tthread::mutex'
class mutex {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:121:5: error: reference to 'lock_guard' is ambiguous
    lock_guard lock(mMutex);
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:80:1: note: candidate found by name lookup is 'std::lock_guard'
lock_guard
^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:216:7: note: candidate found by name lookup is 'tthread::lock_guard'
class lock_guard {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:121:16: error: reference to 'mutex' is ambiguous
    lock_guard lock(mMutex);
               ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:32:78: note: candidate found by name lookup is 'std::mutex'
class _LIBCPP_TYPE_VIS _LIBCPP_THREAD_SAFETY_ANNOTATION(capability("mutex")) mutex
                                                                             ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:129:7: note: candidate found by name lookup is 'tthread::mutex'
class mutex {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:121:16: error: reference to 'mutex' is ambiguous
    lock_guard lock(mMutex);
               ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:32:78: note: candidate found by name lookup is 'std::mutex'
class _LIBCPP_TYPE_VIS _LIBCPP_THREAD_SAFETY_ANNOTATION(capability("mutex")) mutex
                                                                             ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:129:7: note: candidate found by name lookup is 'tthread::mutex'
class mutex {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:136:20: error: no matching member function for call to 'wait'
        mCondition.wait(mMutex);
        ~~~~~~~~~~~^~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:292:10: note: candidate function not viable: no known conversion from 'std::mutex' to 'unique_lock &' for 1st argument
    void wait(unique_lock& __lk) _NOEXCEPT;
         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:403:21: note: candidate function template not viable: requires 2 arguments, but 1 was provided
condition_variable::wait(unique_lock& __lk, _Predicate __pred)
                    ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:141:18: error: no matching member function for call to 'wait'
      mCondition.wait(mMutex);
      ~~~~~~~~~~~^~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:292:10: note: candidate function not viable: no known conversion from 'std::mutex' to 'unique_lock &' for 1st argument
    void wait(unique_lock& __lk) _NOEXCEPT;
         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__mutex_base:403:21: note: candidate function template not viable: requires 2 arguments, but 1 was provided
condition_variable::wait(unique_lock& __lk, _Predicate __pred)
                    ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:272:20: error: reference to 'thread' is ambiguous
  int numThreads = thread::hardware_concurrency();
                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__threading_support:729:24: note: candidate found by name lookup is 'std::thread'
class _LIBCPP_TYPE_VIS thread;
                       ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:341:7: note: candidate found by name lookup is 'tthread::thread'
class thread {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:276:8: error: reference to 'thread' is ambiguous
  list threads;
       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__threading_support:729:24: note: candidate found by name lookup is 'std::thread'
class _LIBCPP_TYPE_VIS thread;
                       ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:341:7: note: candidate found by name lookup is 'tthread::thread'
class thread {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:276:8: error: reference to 'thread' is ambiguous
  list threads;
       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__threading_support:729:24: note: candidate found by name lookup is 'std::thread'
class _LIBCPP_TYPE_VIS thread;
                       ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:341:7: note: candidate found by name lookup is 'tthread::thread'
class thread {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:278:27: error: reference to 'thread' is ambiguous
    threads.push_back(new thread(SliceCalcThread, (void*)&slicePool));
                          ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__threading_support:729:24: note: candidate found by name lookup is 'std::thread'
class _LIBCPP_TYPE_VIS thread;
                       ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:341:7: note: candidate found by name lookup is 'tthread::thread'
class thread {
      ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:278:27: error: allocation of incomplete type 'std::thread'
    threads.push_back(new thread(SliceCalcThread, (void*)&slicePool));
                          ^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__threading_support:729:24: note: forward declaration of 'std::thread'
class _LIBCPP_TYPE_VIS thread;
                       ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/CSGJob.cpp:312:13: error: reference to 'thread' is ambiguous
  for (list::iterator i = threads.begin(); i != threads.end(); ++i) {
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__threading_support:729:24: note: candidate found by name lookup is 'std::thread'
class _LIBCPP_TYPE_VIS thread;
                       ^
/Users/chancesnow/Documents/Scratch/solidaritycsg-master/tools/TinyThread/tinythread.h:341:7: note: candidate found by name lookup is 'tthread::thread'
class thread {
      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.