ci-task: ae23be30-e2b9-4a27-b9ee-36a799d581b8 package: libminifb version: 2022.11.12 toolchain: public-0.15.0 config: macos_12-clang_13.1 machine: macos_12-clang_13.1 (Mac OS "Monterey" 12.5 with Xcode 13.4 Clang 13.1.6 (clang-1316.0.21.2.5/darwin21.6.0)) target: x86_64-apple-darwin21.6.0 timestamp: 2023-01-23 14:15:16.959712639 UTC update: error cd /private/tmp/build/ # step id: bpkg.update 2023-01-23 14:15:01 UTC bpkg -v update --build-option=--stat libminifb b -v --stat update('./libminifb-2022.11.12/') mkdir libminifb-2022.11.12/src/ mkdir libminifb-2022.11.12/tests/basics/ mkdir libminifb-2022.11.12/include/ clang -I/private/tmp/build/libminifb-2022.11.12/src -I/private/tmp/dist/libminifb-2022.11.12/src -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DUSE_METAL_API -DLIBMINIFB_SHARED_BUILD -Wno-cast-function-type -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/src/MiniFB_internal.dylib.o -c -x c /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_internal.c clang++ -I/private/tmp/build/libminifb-2022.11.12/src -I/private/tmp/dist/libminifb-2022.11.12/src -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DUSE_METAL_API -DLIBMINIFB_STATIC_BUILD -Wno-cast-function-type -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/src/MiniFB_cpp.a.o -c -x c++ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp clang -I/private/tmp/build/libminifb-2022.11.12/src -I/private/tmp/dist/libminifb-2022.11.12/src -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DUSE_METAL_API -DLIBMINIFB_SHARED_BUILD -Wno-cast-function-type -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/src/MiniFB_common.dylib.o -c -x c /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_common.c clang++ -I/private/tmp/build/libminifb-2022.11.12/src -I/private/tmp/dist/libminifb-2022.11.12/src -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DUSE_METAL_API -DLIBMINIFB_SHARED_BUILD -Wno-cast-function-type -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/src/MiniFB_cpp.dylib.o -c -x c++ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp clang -I/private/tmp/build/libminifb-2022.11.12/src -I/private/tmp/dist/libminifb-2022.11.12/src -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DUSE_METAL_API -DLIBMINIFB_SHARED_BUILD -Wno-cast-function-type -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/src/MiniFB_timer.dylib.o -c -x c /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_timer.c clang -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DLIBMINIFB_SHARED -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/tests/basics/noise.o -c -x c /private/tmp/dist/libminifb-2022.11.12/tests/basics/noise.c clang++ -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DLIBMINIFB_SHARED -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/tests/basics/input_events_cpp.o -c -x c++ /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp clang -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DLIBMINIFB_SHARED -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/tests/basics/input_events.o -c -x c /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events.c clang -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DLIBMINIFB_SHARED -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/tests/basics/multiple_windows.o -c -x c /private/tmp/dist/libminifb-2022.11.12/tests/basics/multiple_windows.c clang -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DLIBMINIFB_SHARED -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/tests/basics/hidpi.o -c -x c /private/tmp/dist/libminifb-2022.11.12/tests/basics/hidpi.c clang -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DLIBMINIFB_SHARED -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/tests/basics/fullscreen.o -c -x c /private/tmp/dist/libminifb-2022.11.12/tests/basics/fullscreen.c In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:17:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_active_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:18:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_resize_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:19:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_close_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:20:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_keyboard_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:21:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_char_input_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:17:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:22:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_active_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.hvoid mfb_set_mouse_button_callback(std::function func, struct mfb_window *window);: 69 ^: 27: note: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:23:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] 'function' has been explicitly marked deprecated here void mfb_set_mouse_move_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ 24/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:: 64note: :24expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION': note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:18:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:24:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_resize_callback (std::function func, struct mfb_window *window); ^ void mfb_set_mouse_scroll_callback(std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h::2769:: 27note: :'function' has been explicitly marked deprecated here note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined: ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:56:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_active_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ 24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:57:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_resize_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27In file included from :/private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:19 :note: 41:'function' has been explicitly marked deprecated here warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:void mfb_set_close_callback (std::function func, struct mfb_window *window);64 : ^24 : note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h/private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp::641:: 24/private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:: 58note: :expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION'52 : warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ friend void mfb_set_close_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:20:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_keyboard_callback (std::function func, struct mfb_window *window); ^ __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:59:52: __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) warning: ^'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_keyboard_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:21:template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined41 : ^ warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations]/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ void mfb_set_char_input_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.htemplate class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined: 60 ^: 52: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.hwarning: :'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations]64 :24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' friend void mfb_set_char_input_callback (std::function func, struct mfb_window *window); ^ __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h ^: 69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))): 1 ^: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:22:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_mouse_button_callback(std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated hereIn file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:61:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h friend void mfb_set_mouse_button_callback(std::function func, struct mfb_window *window);: 64 ^: 24: note: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.hexpanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION': 69:27: note: 'function' has been explicitly marked deprecated here __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:23:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' void mfb_set_mouse_move_callback (std::function func, struct mfb_window *window); ^ __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h ^: 69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:62:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_mouse_move_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type")))/private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h : ^24 :41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_mouse_scroll_callback(std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined/private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h : ^63 :52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: friend void mfb_set_mouse_scroll_callback(std::function func, struct mfb_window *window);expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:56:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_active_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:57:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_resize_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:58:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_close_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:59:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_keyboard_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:96:template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined10 : ^ warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations]/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h :64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' std::function m_active; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27 __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:60:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] : note: 'function' has been explicitly marked deprecated here friend void mfb_set_char_input_callback (std::function func, struct mfb_window *window); ^ template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:61:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_mouse_button_callback(std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:62:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_mouse_move_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:63:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_mouse_scroll_callback(std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:97:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_resize; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:98:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_close; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:99:81: error: implicit instantiation of undefined template 'std::function' std::function m_keyboard; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:96:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_active; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:100:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_char_input; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:101:91: error: implicit instantiation of undefined template 'std::function' std::function m_mouse_btn; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:97:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_resize; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ :82: note: template is declared here In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:98:10:In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.hwarning: :102'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations]: 10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_close; ^ std::function m_mouse_move; ^/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h :69:27/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:: 69note: :'function' has been explicitly marked deprecated here27 : note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h ^: 64:24/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:: 64note: :expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION'24 : note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:103:81: error: In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:99:81: error: implicit instantiation of undefined template 'std::function' std::function m_keyboard; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ implicit instantiation of undefined template 'std::function' std::function m_scroll; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:100:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_char_input; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:101:91: error: implicit instantiation of undefined template 'std::function' std::function m_mouse_btn; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:102:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_mouse_move; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:103:81: error: implicit instantiation of undefined template 'std::function' std::function m_scroll; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:112:27: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_active = std::bind(method, obj, _1, _2); ~~~~~^~~~ rand In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:112:27: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib stub->m_active = std::bind(method, obj, _1, _2); ~~~~~^~~~ rand:122:9: note: 'rand' declared here /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:using ::rand _LIBCPP_USING_IF_EXISTS; ^ 122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:122:27: error: In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:122:27: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_resize = std::bind(method, obj, _1, _2, _3); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_resize = std::bind(method, obj, _1, _2, _3); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib :122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:132:26: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_close = std::bind(method, obj, _1); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:132:26: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_close = std::bind(method, obj, _1); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:142:29: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_keyboard = std::bind(method, obj, _1, _2, _3, _4); ~~~~~^~~~ rand In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:142:29: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_keyboard = std::bind(method, obj, _1, _2, _3, _4); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:152:31: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_char_input = std::bind(method, obj, _1, _2); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:152:31: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_char_input = std::bind(method, obj, _1, _2); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:162:30: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_mouse_btn = std::bind(method, obj, _1, _2, _3, _4); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:172:31: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_mouse_move = std::bind(method, obj, _1, _2, _3); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:182:27: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_scroll = std::bind(method, obj, _1, _2, _3, _4); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:162:30: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_mouse_btn = std::bind(method, obj, _1, _2, _3, _4); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:172:31: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_mouse_move = std::bind(method, obj, _1, _2, _3); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ In file included from /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:1: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:182:27: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_scroll = std::bind(method, obj, _1, _2, _3, _4); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ clang -I/private/tmp/build/libminifb-2022.11.12/src -I/private/tmp/dist/libminifb-2022.11.12/src -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DUSE_METAL_API -DLIBMINIFB_STATIC_BUILD -Wno-cast-function-type -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/src/MiniFB_internal.a.o -c -x c /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_internal.c clang -I/private/tmp/build/libminifb-2022.11.12/src -I/private/tmp/dist/libminifb-2022.11.12/src -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DUSE_METAL_API -DLIBMINIFB_STATIC_BUILD -Wno-cast-function-type -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/src/MiniFB_common.a.o -c -x c /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_common.c In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:17:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_active_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:18:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_resize_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:19:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_close_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:20:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_keyboard_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:21:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_char_input_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:22:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_mouse_button_callback(std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:23:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_mouse_move_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:24:41: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] void mfb_set_mouse_scroll_callback(std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:56:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_active_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:57:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_resize_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:58:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_close_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:59:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_keyboard_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:60:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_char_input_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:61:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_mouse_button_callback(std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:62:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_mouse_move_callback (std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:63:52: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] friend void mfb_set_mouse_scroll_callback(std::function func, struct mfb_window *window); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:96:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_active; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:97:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_resize; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:98:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_close; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:99:81: error: implicit instantiation of undefined template 'std::function' std::function m_keyboard; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:100:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_char_input; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:101:91: error: implicit instantiation of undefined template 'std::function' std::function m_mouse_btn; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:102:10: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] std::function m_mouse_move; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:103:81: error: implicit instantiation of undefined template 'std::function' std::function m_scroll; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:112:27: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_active = std::bind(method, obj, _1, _2); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:11:25: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions] stub_vector() = default; ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:14:36: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for(mfb_stub *instance : instances) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:122:27: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_resize = std::bind(method, obj, _1, _2, _3); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:19:36: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for(mfb_stub *instance : instances) { ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:11:25: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions] stub_vector() = default; ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:14:36: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for(mfb_stub *instance : instances) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:132:26: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_close = std::bind(method, obj, _1); ~~~~~^~~~ rand /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ 19:36: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for(mfb_stub *instance : instances) { ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:97:30: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_active_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h/private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:97:30: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_active_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' :99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h: __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ 142:29: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_keyboard = std::bind(method, obj, _1, _2, _3, _4); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:101:27: error: no member named 'bind' in namespace 'std' stub->m_active = std::bind(func, _1, _2); ~~~~~^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:152:31: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_char_input = std::bind(method, obj, _1, _2); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:107:30: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_resize_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:101:27: error: no member named 'bind' in namespace 'std' stub->m_active = std::bind(func, _1, _2); ~~~~~^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:162:30: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_mouse_btn = std::bind(method, obj, _1, _2, _3, _4); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:107:30: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_resize_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:172:31:/private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:111:27: error: no member named 'bind' in namespace 'std' stub->m_resize = std::bind(func, _1, _2, _3); ~~~~~^ error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_mouse_move = std::bind(method, obj, _1, _2, _3); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:117:29: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_close_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ In file included from /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:1: In file included from /private/tmp/dist/libminifb-2022.11.12/include/MiniFB.h:99: /private/tmp/dist/libminifb-2022.11.12/include/MiniFB_cpp.h:182:27: error: no member named 'bind' in namespace 'std'; did you mean 'rand'? stub->m_scroll = std::bind(method, obj, _1, _2, _3, _4); ~~~~~^~~~ rand /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:122:9: note: 'rand' declared here using ::rand _LIBCPP_USING_IF_EXISTS; ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:111:27: error: no member named 'bind' in namespace 'std' stub->m_resize = std::bind(func, _1, _2, _3); ~~~~~^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:117:29: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_close_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:121:26: error: no member named 'bind' in namespace 'std' stub->m_close = std::bind(func, _1); ~~~~~^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:127:96: error: implicit instantiation of undefined template 'std::function' mfb_set_keyboard_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:127:32: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_keyboard_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:131:29: error: no member named 'bind' in namespace 'std'; did you mean 'find'? stub->m_keyboard = std::bind(func, _1, _2, _3, _4); ~~~~~^~~~ find /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:26:1: note: 'find' declared here find(_InputIterator __first, _InputIterator __last, const _Tp& __value_) { ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:137:34: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_char_input_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:121:26: error: no member named 'bind' in namespace 'std' stub->m_close = std::bind(func, _1); ~~~~~^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:127:96: error: implicit instantiation of undefined template 'std::function' mfb_set_keyboard_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:127:32: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_keyboard_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:225/private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:131:29/private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:141:31: error: no member named 'bind' in namespace 'std' stub->m_char_input = std::bind(func, _1, _2); ~~~~~^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:147:109: error: implicit instantiation of undefined template 'std::function' mfb_set_mouse_button_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:147:36: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_mouse_button_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ :40: error: no member named 'bind' in namespace 'std' mfb_set_active_callback (std::bind(&Events::active, &e, _1, _2), window); ~~~~~^ : error: no member named 'bind' in namespace 'std'; did you mean 'find'? stub->m_keyboard = std::bind(func, _1, _2, _3, _4); ~~~~~^~~~ find /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:26:1: note: 'find' declared here find(_InputIterator __first, _InputIterator __last, const _Tp& __value_) { ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:137:34: /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:151:30: error: no member named 'bind' in namespace 'std'; did you mean 'find'? stub->m_mouse_btn = std::bind(func, _1, _2, _3, _4); ~~~~~^~~~ find /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:26:1: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_char_input_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ note: 'find' declared here find(_InputIterator __first, _InputIterator __last, const _Tp& __value_) { ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:157:34: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_mouse_move_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:226:40: error: no member named 'bind' in namespace 'std' mfb_set_resize_callback (std::bind(&Events::resize, &e, _1, _2, _3), window); ~~~~~^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:141:31: error: no member named 'bind' in namespace 'std' stub->m_char_input = std::bind(func, _1, _2); ~~~~~^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:147:109: error: implicit instantiation of undefined template 'std::function' mfb_set_mouse_button_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:82: note: template is declared here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:147:36: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_mouse_button_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:151:30: error: no member named 'bind' in namespace 'std'; did you mean 'find'? stub->m_mouse_btn = std::bind(func, _1, _2, _3, _4); ~~~~~^~~~ find /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:26:1: note: 'find' declared here find(_InputIterator __first, _InputIterator __last, const _Tp& __value_) { ^ /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_cpp.cpp:157:34: warning: 'function' is deprecated: Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type [-Wdeprecated-declarations] mfb_set_mouse_move_callback(std::function func, struct mfb_window *window) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:69:27: note: 'function' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_CXX03_FUNCTION _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:64:24: note: expanded from macro '_LIBCPP_DEPRECATED_CXX03_FUNCTION' __attribute__((deprecated("Using std::function in C++03 is not supported anymore. Please upgrade to C++11 or later, or use a different type"))) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 31 warnings and 20 errors generated. fatal error: too many errors emitted, stopping now [-ferror-limit=] 31 warnings and 20 errors generated. /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:227:40: error: no member named 'bind' in namespace 'std' clang -I/private/tmp/build/libminifb-2022.11.12/src -I/private/tmp/dist/libminifb-2022.11.12/src -I/private/tmp/build/libminifb-2022.11.12/include -I/private/tmp/dist/libminifb-2022.11.12/include -DUSE_METAL_API -DLIBMINIFB_STATIC_BUILD -Wno-cast-function-type -Wall -finput-charset=UTF-8 -o libminifb-2022.11.12/src/MiniFB_timer.a.o -c -x c /private/tmp/dist/libminifb-2022.11.12/src/MiniFB_timer.c mfb_set_close_callback (std::bind(&Events::close, &e, _1), window); ~~~~~^ /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:228:40: error: no member named 'bind' in namespace 'std' mfb_set_keyboard_callback (std::bind(&Events::keyboard, &e, _1, _2, _3, _4), window); ~~~~~^ /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:229:40: error: no member named 'bind' in namespace 'std' mfb_set_char_input_callback (std::bind(&Events::char_input, &e, _1, _2), window); ~~~~~^ /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:230:40: error: no member named 'bind' in namespace 'std' mfb_set_mouse_button_callback(std::bind(&Events::mouse_button, &e, _1, _2, _3, _4), window); ~~~~~^ /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:231:40: error: no member named 'bind' in namespace 'std' mfb_set_mouse_move_callback (std::bind(&Events::mouse_move, &e, _1, _2, _3), window); ~~~~~^ /private/tmp/dist/libminifb-2022.11.12/tests/basics/input_events_cpp.cpp:232:40: error: no member named 'bind' in namespace 'std' mfb_set_mouse_scroll_callback(std::bind(&Events::mouse_scroll, &e, _1, _2, _3, _4), window); ~~~~~^ 21 warnings and 19 errors generated. info: failed to update dir{libminifb-2022.11.12/} build statistics: thread_max_active 4 thread_max_total 128 thread_helpers 10 thread_max_waiting 7 task_queue_depth 16 task_queue_full 0 wait_queue_slots 53 wait_queue_collisions 14 phase_switch_contention 0 bpkg update exited with code 1