diff --git a/docpages/building/linux.md b/docpages/building/linux.md index a636bad3c6..44dcc172fa 100644 --- a/docpages/building/linux.md +++ b/docpages/building/linux.md @@ -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` @@ -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