본문 바로가기
C++/0x02-boost

boost 설치

by SpeeDr00t 2018. 3. 6.
반응형

boost 설치

■ install

sudo apt-get install libboost-all-dev
sudo apt-get install aptitude
aptitude search boost
view raw gistfile1.txt hosted with ❤ by GitHub

■ test 소스


#include <iostream>
#include <boost/array.hpp>
using namespace std;
int main() {
boost::array< int , 4 > arr = {{1,2,3,4}};
cout << "hello " << arr[0];
return 0;
}
view raw test.cpp hosted with ❤ by GitHub


반응형