A simple api wrapper for listings, searching, and your profile
This library uses Libcurl for networking, and Json for Modern C++ for parsing
You must have curl installed in order to build Simple Reddit for C++. It can be download at https://curl.haxx.se/download.html, or if on linux using the command
sudo apt install curl
You must have CMake installed to create the static library. It can be downloaded at https://cmake.org/download/, or using the command under Debian
sudo apt-get install cmake
- Download all files
- Change directory to build
cd build
- Execute CMake
cmake ..
- Run the makefile
make
This will create the static library called "libreddit.a". To compile and run programs with the library run the command (if the file is main.cpp)
g++ main.cpp -o test -L . -lreddit