Advertisement
Guest User

gcc error

a guest
Jun 27th, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.70 KB | None | 0 0
  1. g++ -Wall -Wextra -pedantic -g -std=c++11 -pthread -o game main.cpp  -lglfw3 -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo
  2. In file included from main.cpp:47:
  3. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:342:5: error: attempt to use a deleted function
  4.     __invoke(_VSTD::move(_VSTD::get<1>(__t)), _VSTD::move(_VSTD::get<_Indices>(__t))...);
  5.     ^
  6. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:352:5: note: in instantiation of function template specialization 'std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct,
  7.      std::__1::default_delete<std::__1::__thread_struct> >, RawThread>' requested here
  8.     __thread_execute(*__p, _Index());
  9.     ^
  10. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:368:47: note: in instantiation of function template specialization 'std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct,
  11.      std::__1::default_delete<std::__1::__thread_struct> >, RawThread> >' requested here
  12.     int __ec = __libcpp_thread_create(&__t_, &__thread_proxy<_Gp>, __p.get());
  13.                                               ^
  14. main.cpp:68:17: note: in instantiation of function template specialization 'std::__1::thread::thread<RawThread &, void>' requested here
  15.                 mThread = new std::thread(std::forward<Function>(f),            
  16.                               ^
  17. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:437:45: note: in instantiation of function template specialization 'RawThread::RawThread<RawThread &>' requested here
  18.         : first(_VSTD::forward<_U1>(__u1)), second(_VSTD::forward<_U2>(__u2)) {}
  19.                                             ^
  20. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:641:12: note: in instantiation of function template specialization 'std::__1::pair<unsigned int, RawThread>::pair<unsigned int &, RawThread &, false>' requested
  21.       here
  22.     return pair<typename __make_pair_return<_T1>::type, typename __make_pair_return<_T2>::type>
  23.            ^
  24. main.cpp:95:24: note: in instantiation of function template specialization 'std::__1::make_pair<unsigned int &, RawThread &>' requested here
  25.         threadMap.insert(std::make_pair(threadId, myThread));
  26.                               ^
  27. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:1666:5: note: '~__nat' has been explicitly marked deleted here
  28.     ~__nat() = delete;
  29.     ^
  30. 1 error generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement