Meet several undeclared identifier
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:
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: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);}
^
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: