mfrl icon indicating copy to clipboard operation
mfrl copied to clipboard

Meet several undeclared identifier

Open lindsaymorgan opened this issue 4 years ago • 0 comments

Running this project on macOS, Clion. Meet these errors. Any suggestions?

====================[ Build | render | Debugllvm ]============================== /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake --build /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/cmake-build-debugllvm --target render -- -j 9 Scanning dependencies of target render [ 14%] Building CXX object CMakeFiles/render.dir/src/render/backend/data.cc.o [ 28%] Building CXX object CMakeFiles/render.dir/src/render/backend/render.cc.o [ 57%] Building CXX object CMakeFiles/render.dir/src/render/backend/utility/logger.cc.o [ 71%] Building CXX object CMakeFiles/render.dir/src/render/backend/utility/config.cc.o [ 71%] Building CXX object CMakeFiles/render.dir/src/render/backend/text.cc.o [ 85%] Building CXX object CMakeFiles/render.dir/src/render/backend/websocket.cc.o In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/data.cc:1: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/fstream:183: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ostream:138: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ios:214: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:95: /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:137:77: error: use of undeclared identifier 'wcschr' wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcschr(__s, __c);} ^ In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/render.cc:1: In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/server.h:4: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/fstream:183: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ostream:138: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ios:214: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:95: /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:137:77: error: use of undeclared identifier 'wcschr' wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcschr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:144:87: error: use of undeclared identifier 'wcspbrk' wchar_t* __libcpp_wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcspbrk(__s1, __s2);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:151:78: error: use of undeclared identifier 'wcsrchr'; did you mean 'wcschr'? /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:144:87: error: use of undeclared identifier 'wcspbrk' wchar_t* __libcpp_wcsrchr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcsrchr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:139:16: note: 'wcschr' declared here wchar_t* __libcpp_wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcspbrk(__s1, __s2);} ^ const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:158:86: error: use of undeclared identifier 'wcsstr'; did you mean 'wcschr'? wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:141:16: note: 'wcschr' declared here wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:158:86: error: no matching function for call to 'wcschr' wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:141:16: note: candidate disabled: wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:158:93: error: cannot initialize a parameter of type 'wchar_t ' with an lvalue of type 'const wchar_t '/usr/local/opt/llvm/bin/../include/c++/v1/wchar.h: 151:78: error: use of undeclared identifier 'wcsrchr'; did you mean 'wcschr'? wchar_t __libcpp_wcsstr(const wchar_t __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^~~~ wchar_t* __libcpp_wcsrchr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcsrchr(__s, __c);} ^/usr/local/opt/llvm/bin/../include/c++/v1/wchar.h :141:38: note: /usr/local/opt/llvm/bin/../include/c++/v1/wchar.hpassing argument to parameter '__s' here:139 :16: note: 'wcschr' declared here wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:165:60: error: unknown type name 'size_t' wchar_t* __libcpp_wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return (wchar_t*)wmemchr(__s, __c, __n);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h/usr/local/opt/llvm/bin/../include/c++/v1/wchar.h::158167::8657:: errorerror: : use of undeclared identifier 'wcsstr'; did you mean 'wcschr'?unknown type name 'size_t'

const wchar_t* wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);} ^ wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:141:16: note: 'wcschr' declared here wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:158:86: error: no matching function for call to 'wcschr' wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:141:16: note: candidate disabled: /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:169:57: error: unknown type name 'size_t' wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ wchar_t* wmemchr( wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:158:93: error: cannot initialize a parameter of type 'wchar_t ' with an lvalue of type 'const wchar_t ' wchar_t __libcpp_wcsstr(const wchar_t __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);}In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/utility/config.cc: ^~~~ 1: /usr/local/opt/llvm/bin/../include/c++/v1/string.h/usr/local/opt/llvm/bin/../include/c++/v1/wchar.h::73141::6438:: errornote: : passing argument to parameter '__s' here use of undeclared identifier 'strchr' wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ char* __libcpp_strchr(const char* __s, int __c) {return (char*)strchr(__s, __c);} ^ In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/text.cc:4: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/math.h:308: /usr/local/opt/llvm/bin/../include/c++/v1/stdlib.h:142:34: error: /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:165unknown type name 'ldiv_t':60 : error: unknown type name 'size_t' wchar_t* __libcpp_wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return (wchar_t*)wmemchr(__s, __c, __n);}inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {

                                                       ^                                 ^

/usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:167:57: error: unknown type name 'size_t' /usr/local/opt/llvm/bin/../include/c++/v1/stdlib.h:143:12: error: no member named 'ldiv' in the global namespace return ::ldiv(__x, __y); ~~^ const wchar_t* wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/string.h:80:75: error: use of undeclared identifier 'strpbrk' char* __libcpp_strpbrk(const char* __s1, const char* __s2) {return (char*)strpbrk(__s1, __s2);} ^ In file included from In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/data.cc/Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/websocket.cc::1: 1In file included from : /usr/local/opt/llvm/bin/../include/c++/v1/fstream:In file included from 183/Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/websocket.h: :In file included from 4/usr/local/opt/llvm/bin/../include/c++/v1/ostream: :In file included from 138/usr/local/include/websocketpp/config/asio_no_tls_client.hpp: :In file included from 31/usr/local/opt/llvm/bin/../include/c++/v1/ios: :In file included from 214/usr/local/include/websocketpp/config/core_client.hpp: :38: /usr/local/opt/llvm/bin/../include/c++/v1/iosfwdIn file included from :/usr/local/include/websocketpp/concurrency/basic.hpp189::3114: :In file included from /usr/local/include/websocketpp/common/thread.hpp:59error: : In file included from /usr/local/opt/llvm/bin/../include/c++/v1/thread:use of undeclared identifier 'mbstate_t'86:

In file included from /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:95: /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:137:77: typedef fpos<mbstate_t> streampos;/usr/local/opt/llvm/bin/../include/c++/v1/stdlib.h :error146 ^: : 34/usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:: 169use of undeclared identifier 'wcschr':57 error:: unknown type name 'lldiv_t'error: unknown type name 'size_t' inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x, ^ wchar_t* wmemchr( wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);}wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcschr(__s, __c);}

                                                    ^                                                                            ^

/usr/local/opt/llvm/bin/../include/c++/v1/stdlib.h:148:12: /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:error190: :14no member named 'lldiv' in the global namespace : error: use of undeclared identifier 'mbstate_t' return ::lldiv(__x, __y);

     ~~^

typedef fpos<mbstate_t> wstreampos; ^ /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:195:14: error: use of undeclared identifier 'mbstate_t' typedef fpos<mbstate_t> u16streampos; ^ /usr/local/opt/llvm/bin/../include/c++/v1/string.h:87:65: error: use of undeclared identifier 'strrchr'; did you mean 'strchr'? char* __libcpp_strrchr(const char* __s, int __c) {return (char*)strrchr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/string.h:75:13: note: 'strchr' declared here /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:144:87: error: use of undeclared identifier 'wcspbrk' const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);} ^ wchar_t* __libcpp_wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcspbrk(__s1, __s2);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:196:14: error: use of undeclared identifier 'mbstate_t' typedef fpos<mbstate_t> u32streampos; ^ /usr/local/opt/llvm/bin/../include/c++/v1/string.h:94:49: error: unknown type name 'size_t' /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:151:78: error: use of undeclared identifier 'wcsrchr'; did you mean 'wcschr'? void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);} ^ wchar_t* __libcpp_wcsrchr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcsrchr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:139:16: note: 'wcschr' declared here const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/string.h:96:46: error: unknown type name 'size_t' In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/render.ccconst void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}: 1: ^In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/server.h:4: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/fstream:183: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ostream:138: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ios:214: /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:189:14: error: use of undeclared identifier 'mbstate_t' typedef fpos<mbstate_t> streampos; ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:158:86: error: use of undeclared identifier 'wcsstr'; did you mean 'wcschr'? wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:141:16: note: 'wcschr' declared here /usr/local/opt/llvm/bin/../include/c++/v1/string.h:98:46: wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} error: ^ unknown type name 'size_t' void* memchr( void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);} /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h ^: 158:86: error: no matching function for call to 'wcschr' /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:190:wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);}14 : ^ error: use of undeclared identifier 'mbstate_t' /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:141:16: notetypedef fpos<mbstate_t> wstreampos;: candidate disabled: ^

  wchar_t* wcschr(      wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);}
           ^

/usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:158:93: error: cannot initialize a parameter of type 'wchar_t ' with an lvalue of type 'const wchar_t ' wchar_t __libcpp_wcsstr(const wchar_t __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^~~~ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:141:38: note: passing argument to parameter '__s' here wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/string.h:101:74: error: use of undeclared identifier 'strstr'; did you mean 'strchr'? char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);} ^/usr/local/opt/llvm/bin/../include/c++/v1/iosfwd :195:14: /usr/local/opt/llvm/bin/../include/c++/v1/string.h:77error:: 13: use of undeclared identifier 'mbstate_t' note: 'strchr' declared here typedef fpos<mbstate_t> u16streampos; ^ char* strchr( char* __s, int __c) {return __libcpp_strchr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/string.h:101:74: error: no matching function for call to 'strchr' char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/string.h:77:13: note: candidate disabled: char* strchr( char* __s, int __c) {return __libcpp_strchr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/string.h:101:81: error: cannot initialize a parameter of type 'char ' with an lvalue of type 'const char ' char __libcpp_strstr(const char __s1, const char* __s2) {return (char*)strstr(__s1, __s2);} ^~~~ /usr/local/opt/llvm/bin/../include/c++/v1/string.h:77:/usr/local/opt/llvm/bin/../include/c++/v1/iosfwd32::196 :14:note : passing argument to parameter '__s' hereerror: use of undeclared identifier 'mbstate_t' /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:165:60: error: unknown type name 'size_t'typedef fpos<mbstate_t> u32streampos;

         ^
  char* strchr(      char* __s, int __c) {return __libcpp_strchr(__s, __c);}
                           ^

wchar_t* __libcpp_wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return (wchar_t*)wmemchr(__s, __c, __n);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:167:57: error: unknown type name 'size_t' const wchar_t* wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:169:57: error: unknown type name 'size_t' wchar_t* wmemchr( wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);} ^ In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/websocket.cc:1: In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/websocket.h:4: In file included from /usr/local/include/websocketpp/config/asio_no_tls_client.hpp:31: In file included from /usr/local/include/websocketpp/config/core_client.hpp:38: In file included from /usr/local/include/websocketpp/concurrency/basic.hpp:31: In file included from /usr/local/include/websocketpp/common/thread.hpp:59: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/thread:86: /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:189:14: error: use of undeclared identifier 'mbstate_t' typedef fpos<mbstate_t> streampos; ^ In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/data.cc:1: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/fstream:183: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ostream:138: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ios:215: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__locale:14: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/string:506: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/string_view:175: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__string:57: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/algorithm:639: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/initializer_list:46: /usr/local/opt/llvm/bin/../include/c++/v1/cstddef:49:9: error: no member named 'ptrdiff_t' in the global namespace using ::ptrdiff_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:190:14: error: use of undeclared identifier 'mbstate_t' typedef fpos<mbstate_t> wstreampos; ^ /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:195:14: error: use of undeclared identifier 'mbstate_t' typedef fpos<mbstate_t> u16streampos; ^ /usr/local/opt/llvm/bin/../include/c++/v1/cstddef:50:9: error: no member named 'size_t' in the global namespace using ::size_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:196:14: error: use of undeclared identifier 'mbstate_t' typedef fpos<mbstate_t> u32streampos; ^ /usr/local/opt/llvm/bin/../include/c++/v1/cstddef:53:9: error: no member named 'max_align_t' in the global namespace using ::max_align_t; ~~^ In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/utility/config.cc:2: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/iostream:37: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ios:214: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:95: /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:137:77: error: use of undeclared identifier 'wcschr' wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcschr(__s, __c);} ^ In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/data.cc:1: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/fstream:183: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ostream:138: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ios:215: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__locale:14: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/string:506: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/string_view:175: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__string:57: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/algorithm:639: /usr/local/opt/llvm/bin/../include/c++/v1/initializer_list:61:5: error: unknown type name 'size_t' size_t _size; ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:144:87: error: use of undeclared identifier 'wcspbrk' wchar_t* __libcpp_wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcspbrk(__s1, __s2);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/initializer_list:65:38: error: unknown type name 'size_t' initializer_list(const _Ep* __b, size_t __s) _NOEXCEPT ^ /usr/local/opt/llvm/bin/../include/c++/v1/initializer_list:73:13: error: unknown type name 'size_t' typedef size_t size_type; ^ In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/websocket.cc:1: In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/websocket.h:4: In file included from /usr/local/include/websocketpp/config/asio_no_tls_client.hpp:31: In file included from /usr/local/include/websocketpp/config/core_client.hpp:38: In file included from /usr/local/include/websocketpp/concurrency/basic.hpp:31: In file included from /usr/local/include/websocketpp/common/thread.hpp:59: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/thread:87: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__functional_base:14: /usr/local/opt/llvm/bin/../include/c++/v1/wchar.hIn file included from :/usr/local/opt/llvm/bin/../include/c++/v1/type_traits151::41778: : /usr/local/opt/llvm/bin/../include/c++/v1/cstddef:error: 49:9use of undeclared identifier 'wcsrchr'; did you mean 'wcschr'?: error: no member named 'ptrdiff_t' in the global namespace using ::ptrdiff_t;wchar_t* __libcpp_wcsrchr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcsrchr(__s, __c);}

  ~~^                                                                             ^

/usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:139:16: note: 'wcschr' declared here const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] /usr/local/opt/llvm/bin/../include/c++/v1/cstddef:50:9: error: no member named 'size_t' in the global namespace using ::size_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:158:86: error: use of undeclared identifier 'wcsstr'; did you mean 'wcschr'? In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/render.cc:1: In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/server.h:4: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/fstream:183: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ostream:138: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ios:215: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__locale:14: In file included from wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);}/usr/local/opt/llvm/bin/../include/c++/v1/string :506 ^:

In file included from /usr/local/opt/llvm/bin/../include/c++/v1/string_view:175: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h/usr/local/opt/llvm/bin/../include/c++/v1/__string::14157:: 16In file included from :/usr/local/opt/llvm/bin/../include/c++/v1/algorithm :639: noteIn file included from : /usr/local/opt/llvm/bin/../include/c++/v1/initializer_list:'wcschr' declared here46:

/usr/local/opt/llvm/bin/../include/c++/v1/cstddef:49:9: error: no member named 'ptrdiff_t' in the global namespace using ::ptrdiff_t; ~~^ wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:158:86: error: no matching function for call to 'wcschr' wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:141:16: note: /usr/local/opt/llvm/bin/../include/c++/v1/cstddefcandidate disabled: :53 :9: error: no member named 'max_align_t' in the global namespace using ::max_align_t; ~~^ wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:158:93: error: cannot initialize a parameter of type 'wchar_t ' with an lvalue of type 'const wchar_t ' wchar_t __libcpp_wcsstr(const wchar_t __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);} ^~~~ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:141:38: note: passing argument to parameter '__s' here /usr/local/opt/llvm/bin/../include/c++/v1/cstddef:50:9: error: no member named 'size_t' in the global namespace using ::size_t; ~~^ wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/cstddef:53:9: error: no member named 'max_align_t' in the global namespace using ::max_align_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:165:60: error: unknown type name 'size_t' wchar_t* __libcpp_wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return (wchar_t*)wmemchr(__s, __c, __n);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:167:57: error: unknown type name 'size_t' const wchar_t* wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);} ^ In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/render.cc:1: In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/server.h:4: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/fstream:183: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ostream:138: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ios:215: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__locale:14: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/string:506: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/string_view:175: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__string:57: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/algorithm:639: /usr/local/opt/llvm/bin/../include/c++/v1/initializer_list:61:5: error: unknown type name 'size_t' size_t _size; ^ /usr/local/opt/llvm/bin/../include/c++/v1/wchar.h:169:57: error: unknown type name 'size_t' wchar_t* wmemchr( wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/initializer_list:65:38: error: unknown type name 'size_t' initializer_list(const _Ep* __b, size_t __s) _NOEXCEPT ^ /usr/local/opt/llvm/bin/../include/c++/v1/initializer_list:73:13: error: unknown type name 'size_t' typedef size_t size_type; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/utility/config.cc:2: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/iostream:37: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ios:214: /usr/local/opt/llvm/bin/../include/c++/v1/iosfwd:189:14: error: use of undeclared identifier 'mbstate_t' typedef fpos<mbstate_t> streampos; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/websocket.cc:1: In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/websocket.h:4: In file included from /usr/local/include/websocketpp/config/asio_no_tls_client.hpp:31: In file included from /usr/local/include/websocketpp/config/core_client.hpp:38: In file included from /usr/local/include/websocketpp/concurrency/basic.hpp:31: In file included from /usr/local/include/websocketpp/common/thread.hpp:59: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/thread:87: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__functional_base:14: /usr/local/opt/llvm/bin/../include/c++/v1/type_traits:1553:32: error: use of undeclared identifier 'size_t'; did you mean 'sizeof'? : public integral_constant<size_t, 0> {}; ^ /usr/local/opt/llvm/bin/../include/c++/v1/type_traits:1553:38: error: expected expression : public integral_constant<size_t, 0> {}; ^ /usr/local/opt/llvm/bin/../include/c++/v1/type_traits:1555:32: error: use of undeclared identifier 'size_t'; did you mean 'sizeof'? : public integral_constant<size_t, rank<_Tp>::value + 1> {}; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/utility/logger.cc:1: In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/utility/logger.h:4: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/mutex:190: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__mutex_base:14: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/chrono:829: In file included from /usr/local/opt/llvm/bin/../include/c++/v1/ratio:81: /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:157:8: error: no member named 'uint8_t' in the global namespace using::uint8_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:158:8: error: no member named 'uint16_t' in the global namespace using::uint16_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:159:8: error: no member named 'uint32_t' in the global namespace using::uint32_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:160:8: error: no member named 'uint64_t' in the global namespace using::uint64_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:162:8: error: no member named 'int_least8_t' in the global namespace using::int_least8_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:163:8: error: no member named 'int_least16_t' in the global namespace using::int_least16_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:164:8: error: no member named 'int_least32_t' in the global namespace using::int_least32_t; ~~^ In file included from /Users/lindsaymorgan/Desktop/mfrl/examples/battle_model/src/render/backend/text.cc:4: /usr/local/opt/llvm/bin/../include/c++/v1/math.h:771:93: error: no member named 'acosf' in the global namespace; did you mean 'acos'? inline _LIBCPP_INLINE_VISIBILITY float acos(float __lcpp_x) _NOEXCEPT {return ::acosf(__lcpp_x);} ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:771:46: note: 'acos' declared here inline _LIBCPP_INLINE_VISIBILITY float acos(float __lcpp_x) _NOEXCEPT {return ::acosf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:165:8: error: no member named 'int_least64_t' in the global namespace using::int_least64_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:772:93: error: no member named 'acosl' in the global namespace; did you mean 'acos'? inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return ::acosl(__lcpp_x);} ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:771:46: note: 'acos' declared here inline _LIBCPP_INLINE_VISIBILITY float acos(float __lcpp_x) _NOEXCEPT {return ::acosf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:778:38: error: call to 'acos' is ambiguous acos(_A1 __lcpp_x) _NOEXCEPT {return ::acos((double)__lcpp_x);} ^~~~~~ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:771:46: note: candidate function inline _LIBCPP_INLINE_VISIBILITY float acos(float __lcpp_x) _NOEXCEPT {return ::acosf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:772:46: note: candidate function inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return ::acosl(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:167:8: error: no member named 'uint_least8_t' in the global namespace using::uint_least8_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:783:93: error: no member named 'asinf' in the global namespace; did you mean 'asin'? inline _LIBCPP_INLINE_VISIBILITY float asin(float __lcpp_x) _NOEXCEPT {return ::asinf(__lcpp_x);} ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:783:46: note: 'asin' declared here inline _LIBCPP_INLINE_VISIBILITY float asin(float __lcpp_x) _NOEXCEPT {return ::asinf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:784:93: error: no member named 'asinl' in the global namespace; did you mean 'asin'? inline _LIBCPP_INLINE_VISIBILITY long double asin(long double __lcpp_x) _NOEXCEPT {return ::asinl(__lcpp_x);} ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:783:46: note: 'asin' declared here inline _LIBCPP_INLINE_VISIBILITY float asin(float __lcpp_x) _NOEXCEPT {return ::asinf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:790:38: error: call to 'asin' is ambiguous asin(_A1 __lcpp_x) _NOEXCEPT {return ::asin((double)__lcpp_x);} ^~~~~~ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:783:46: note: candidate function inline _LIBCPP_INLINE_VISIBILITY float asin(float __lcpp_x) _NOEXCEPT {return ::asinf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:784:46: note: candidate function inline _LIBCPP_INLINE_VISIBILITY long double asin(long double __lcpp_x) _NOEXCEPT {return ::asinl(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:168:8: error: no member named 'uint_least16_t' in the global namespace using::uint_least16_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:795:93: error: no member named 'atanf' in the global namespace; did you mean 'atan'? inline _LIBCPP_INLINE_VISIBILITY float atan(float __lcpp_x) _NOEXCEPT {return ::atanf(__lcpp_x);} ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:795:46: note: 'atan' declared here inline _LIBCPP_INLINE_VISIBILITY float atan(float __lcpp_x) _NOEXCEPT {return ::atanf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:796:93: error: no member named 'atanl' in the global namespace; did you mean 'atan'? inline _LIBCPP_INLINE_VISIBILITY long double atan(long double __lcpp_x) _NOEXCEPT {return ::atanl(__lcpp_x);} ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:795:46: note: 'atan' declared here inline _LIBCPP_INLINE_VISIBILITY float atan(float __lcpp_x) _NOEXCEPT {return ::atanf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:802:38: error: call to 'atan' is ambiguous atan(_A1 __lcpp_x) _NOEXCEPT {return ::atan((double)__lcpp_x);} ^~~~~~ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:795:46: note: candidate function inline _LIBCPP_INLINE_VISIBILITY float atan(float __lcpp_x) _NOEXCEPT {return ::atanf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:796:46: note: candidate function inline _LIBCPP_INLINE_VISIBILITY long double atan(long double __lcpp_x) _NOEXCEPT {return ::atanl(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:169:8: error: no member named 'uint_least32_t' in the global namespace using::uint_least32_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:807:116: error: no member named 'atan2f' in the global namespace; did you mean 'atan2'? inline _LIBCPP_INLINE_VISIBILITY float atan2(float __lcpp_y, float __lcpp_x) _NOEXCEPT {return ::atan2f(__lcpp_y, __lcpp_x);} ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:807:46: note: 'atan2' declared here inline _LIBCPP_INLINE_VISIBILITY float atan2(float __lcpp_y, float __lcpp_x) _NOEXCEPT {return ::atan2f(__lcpp_y, __lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:808:116: error: no member named 'atan2l' in the global namespace; did you mean 'atan2'? inline _LIBCPP_INLINE_VISIBILITY long double atan2(long double __lcpp_y, long double __lcpp_x) _NOEXCEPT {return ::atan2l(__lcpp_y, __lcpp_x);} ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:807:46: note: 'atan2' declared here inline _LIBCPP_INLINE_VISIBILITY float atan2(float __lcpp_y, float __lcpp_x) _NOEXCEPT {return ::atan2f(__lcpp_y, __lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:170:8: error: no member named 'uint_least64_t' in the global namespace using::uint_least64_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:830:93: error: no member named 'ceilf' in the global namespace; did you mean 'ceil'? inline _LIBCPP_INLINE_VISIBILITY float ceil(float __lcpp_x) _NOEXCEPT {return ::ceilf(__lcpp_x);} ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:830:46: note: 'ceil' declared here inline _LIBCPP_INLINE_VISIBILITY float ceil(float __lcpp_x) _NOEXCEPT {return ::ceilf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:172:8: error: no member named 'int_fast8_t' in the global namespace using::int_fast8_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:831:93: error: no member named 'ceill' in the global namespace; did you mean 'ceil'? inline _LIBCPP_INLINE_VISIBILITY long double ceil(long double __lcpp_x) _NOEXCEPT {return ::ceill(__lcpp_x);} ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:830:46: note: 'ceil' declared here inline _LIBCPP_INLINE_VISIBILITY float ceil(float __lcpp_x) _NOEXCEPT {return ::ceilf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:837:38: error: call to 'ceil' is ambiguous ceil(_A1 __lcpp_x) _NOEXCEPT {return ::ceil((double)__lcpp_x);} ^~~~~~ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:830:46: note: candidate function inline _LIBCPP_INLINE_VISIBILITY float ceil(float __lcpp_x) _NOEXCEPT {return ::ceilf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:831:46: note: candidate function inline _LIBCPP_INLINE_VISIBILITY long double ceil(long double __lcpp_x) _NOEXCEPT {return ::ceill(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:173:8: error: no member named 'int_fast16_t' in the global namespace using::int_fast16_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:842:92: error: no member named 'cosf' in the global namespace; did you mean 'cos'? inline _LIBCPP_INLINE_VISIBILITY float cos(float __lcpp_x) _NOEXCEPT {return ::cosf(__lcpp_x);} ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/math.h:842:46: note: 'cos' declared here inline _LIBCPP_INLINE_VISIBILITY float cos(float __lcpp_x) _NOEXCEPT {return ::cosf(__lcpp_x);} ^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:174:8: error: no member named 'int_fast32_t' in the global namespace using::int_fast32_t; ~~^ fatal error: too many errors emitted, stopping now [-ferror-limit=] /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:175:8: error: no member named 'int_fast64_t' in the global namespace using::int_fast64_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:177:8: error: no member named 'uint_fast8_t' in the global namespace using::uint_fast8_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:178:8: error: no member named 'uint_fast16_t' in the global namespace using::uint_fast16_t; ~~^ /usr/local/opt/llvm/bin/../include/c++/v1/cstdint:179:8: error: no member named 'uint_fast32_t' in the global namespace using::uint_fast32_t; ~~^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[3]: *** [CMakeFiles/render.dir/src/render/backend/utility/config.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... 20 errors generated. make[3]: *** [CMakeFiles/render.dir/src/render/backend/utility/logger.cc.o] Error 1 20 errors generated. make[3]: *** [CMakeFiles/render.dir/src/render/backend/text.cc.o] Error 1 20 errors generated. make[3]: *** [CMakeFiles/render.dir/src/render/backend/data.cc.o] Error 1 20 errors generated. make[3]: *** [CMakeFiles/render.dir/src/render/backend/websocket.cc.o] Error 1 20 errors generated. make[3]: *** [CMakeFiles/render.dir/src/render/backend/render.cc.o] Error 1 make[2]: *** [CMakeFiles/render.dir/all] Error 2 make[1]: *** [CMakeFiles/render.dir/rule] Error 2 make: *** [render] Error 2

lindsaymorgan avatar Apr 20 '21 07:04 lindsaymorgan