My mistake, I should have edited the raylib.pc file instead of editing the documentation.

Philo2010
2023-06-12 18:46:28 -07:00
parent c4f134fae8
commit 4929c84e1b

@ -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 -std=c++11 `pkg-config --libs --cflags raylib` -o YourGame
cc yourgame.c `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 -std=c++11 `pkg-config --libs --cflags raylib` -o YourGame
cc yourgame.c -framework IOKit -framework Cocoa -framework OpenGL `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.