diff --git a/README.md b/README.md index cd8f015..8f78d14 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,19 @@ Machine learning is a vast and exiciting discipline, garnering attention from sp

## Installation -Begin by downloading the header files for the ML++ library. You can do this by cloning the repository and extracting the MLPP directory within it, as well as the "MLPP.so" file. +Begin by downloading the header files for the ML++ library. You can do this by cloning the repository and extracting the MLPP directory within it: ``` git clone https://github.com/novak-99/MLPP ``` +Next, execute the "./buildSO.sh" shell script. If you lack the necessary permissions, be sure to change those, too: +``` +chmod +x buildSO.sh +./buildSO.sh +``` +To allow your projects to access the ML++ library, move the shared object file to the /usr/local/lib directory: +``` +sudo mv SharedLib/MLPP.so /usr/local/lib +``` After doing so, maintain the ML++ source files in a local directory and include them in this fashion: ```cpp #include "MLPP/Stat/Stat.hpp" // Including the ML++ statistics module. @@ -20,9 +29,9 @@ int main(){ ... } ``` -Finally, after you have concluded creating a project, compile it using g++. Be sure to store the MLPP.so file in a local directory. +Finally, after you have concluded creating a project, compile it using g++: ``` -g++ main.cpp MLPP.so --std=c++17 +g++ main.cpp /usr/local/lib/MLPP.so --std=c++17 ``` ## Usage diff --git a/a.out b/a.out index f897385..baca3a5 100755 Binary files a/a.out and b/a.out differ