From c4f134fae830d533d9e9a43635e20335b83dadd4 Mon Sep 17 00:00:00 2001 From: Philo2010 <120284687+Philo2010@users.noreply.github.com> Date: Mon, 12 Jun 2023 18:34:27 -0700 Subject: [PATCH] Without the addition of "-std=c++11", the color on mac will not work. --- Working-on-macOS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Working-on-macOS.md b/Working-on-macOS.md index 13b0fb4..9cf9258 100644 --- a/Working-on-macOS.md +++ b/Working-on-macOS.md @@ -28,11 +28,11 @@ brew install raylib ``` - raylib installs a pkg-config file, which describes the necessary compilation and linker flags to use it with `yourgame`: ``` -cc yourgame.c `pkg-config --libs --cflags raylib` -o YourGame +cc yourgame.c -std=c++11 `pkg-config --libs --cflags raylib` -o YourGame ``` - If the build fails, you may need to run the following command with the required frameworks ``` -cc yourgame.c -framework IOKit -framework Cocoa -framework OpenGL `pkg-config --libs --cflags raylib` -o YourGame +cc yourgame.c -framework IOKit -framework Cocoa -framework OpenGL -std=c++11 `pkg-config --libs --cflags raylib` -o YourGame ``` You may get an error, complaining that the `pkg-config` command was not found. You can use `brew install pkgconfig` to fix that.