Skip to content

Commit

Permalink
docs: changed section of important flag in buildlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
BIGBEASTISHANK committed Nov 28, 2023
1 parent a84b116 commit dc01bc6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docpages/building/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ Once installed to the `/usr/local` directory, you can make use of the library in
g++ -std=c++17 mydppbot.cpp -o dppbot -ldpp
```

The important flags in this command-line are:

* `-std=c++17` - Required to compile the headers
* `mydppbot.cpp` - Your source code
* `-o dppbot` - The name of the executable to make
* `-ldpp` - Link to libdpp.so

If you are on **Arch Linux**:

- You need to give proper permission to `libdpp.so` and `libdpp.so.10.0.29`
Expand All @@ -49,12 +56,9 @@ sudo chmod 755 /usr/local/lib/libdpp.so.10.0.29
g++ -std=c++17 -I/usr/local/include mydppbot.cpp -o dppbot /usr/local/lib/libdpp.so -Wl,-rpath,/usr/local/lib
```

The important flags in this command-line are:
The important flags in this command-line only for Arch Linux are:

* `-std=c++17` - Required to compile the headers
* `-I/usr/local/include` - Required to tell the linker where dpp headers are located
* `mydppbot.cpp` - Your source code
* `-o dppbot` - The name of the executable to make
* `/usr/local/lib/libdpp.so` - Required to specify the path to the shared library
* `-Wl` - Required to pass options directly to the linker
* `-rpath,/usr/local/lib` - Required to specify the runtime library search path
Expand Down

0 comments on commit dc01bc6

Please sign in to comment.