LoginSignup
0
1

More than 5 years have passed since last update.

C++ で restclient-cpp を使う準備

Last updated at Posted at 2015-11-01

概要

C++ の rest client(restclient-cpp) を使用する準備

  • Ubuntu14.04
  • gcc version 4.8.4

install

使用するライブラリ

$ sudo apt-get install autoconf
$ sudo apt-get install libtool
$ wget http://curl.haxx.se/download/curl-7.45.0.tar.gz
$ tar xzvf curl-7.45.0.tar.gz 
$ cd curl-7.45.0/
$ ./configure
$ make
$ sudo make install

restclient の install

$ git clone https://github.com/mrtazz/restclient-cpp
$ cd restclient-cpp
$ ./autogen.sh
$ ./configure
$ sudo make install

Compile

$ g++ file_name.cpp -lrestclient-cpp

run

$ ./a.out -L/usr/local/lib

or

$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
$ export LD_LIBRARY_PATH
$ ./a.out

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1