






sudo apt-get install libboost-all-dev

测试代码:./b2 install
编译:#include <iostream>
#include <boost/lexical_cast.hpp>
#include <boost/bind.hpp>
using namespace std;
using namespace boost;
int fun(int x,int y){return x+y;}
int main()
{
int a=lexical_cast<int>("123");
int b=lexical_cast<int>("543");
cout<<a<<endl;
cout<<b<<endl;
cout<<boost::bind(fun,a,b)()<<endl;
return 0;
}
或者建立CMakeLists.txt:g++ test.cpp -o test
结果:project( Boost )
find_package( Boost REQUIRED )
add_executable( Boost test.cpp )
target_link_libraries( Boost ${BOOST_LIBS} )

方法一:libprotoc版本为2.5.0
sudo apt-get install libprotobuf-dev protobuf-compiler
完成后:tar -zxvf protobuf-cpp-3.0.0-beta-2.tar.gz
cd protobuf-3.0.0-beta-2
./configure
make
make check
make install
vim ~/.profile
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
source ~/.profile
protoc --version

4.OpenCV安装make clean
make proto_msg
make
./write
./reader

$ sudo apt-get install libopencv-dev


gcc -lSDL -o test test.c

