Skip to content

jchallenger1/Simple-Reddit-for-C-plus-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Reddit for C++

A simple api wrapper for listings, searching, and your profile
This library uses Libcurl for networking, and Json for Modern C++ for parsing

Requirements

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

Quick Start

  1. Download all files
  2. Change directory to build
  cd build
  1. Execute CMake
  cmake ..
  1. 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