Skip to content

Commit

Permalink
docs: added more info to install-brew
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaskowicz1 committed Nov 18, 2023
1 parent b531153 commit 1d2c4d1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docpages/install/install-brew.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,26 @@ brew install libdpp
brew link libdpp
```

This command will install libdpp and setup links so it can be used correctly.

You will now be able to use D++ by including its library on the command line:

```bash
clang++ -std=c++17 -L/opt/homebrew/lib -I/opt/homebrew/include -ldpp mybot.cpp -o mybot
clang++ -std=c++17 -I/opt/homebrew/include -ldpp mybot.cpp -o mybot
```

\note A crucial part of this command is `-I/opt/homebrew/include`. AppleClang should automatically have `/opt/homebrew/lib` added as a way to detect library (if it doesn't, you can do `-L/opt/homebrew/lib` with this command), however, AppleClang does not auto-detect includes from homebrew. This means, D++ needs you to link the includes folder.

\include{doc} install_prebuilt_footer.dox

## Uninstalling & Unlinking

To unlink and uninstall dpp, run
```bash
brew unlink libdpp
brew uninstall libdpp
```

Then, double check inside `/opt/homebrew/lib` and `/opt/homebrew/include` to make sure that libdpp does not exist. If it does, remove files/folders relating to libdpp.

**Have fun!**

0 comments on commit 1d2c4d1

Please sign in to comment.