首先下载cppcms库
wget -O cppcms-1.0.5.tar.bz2 http://downloads.sourceforge.net/project/cppcms/cppcms/1.0.5/cppcms-1.0.5.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fcppcms%2Ffiles%2F&ts=1443867793&use_mirror=jaist
tar jxvf cppcms-1.0.5.tar.bz2
apt-get install libpcre3-dev zlib1g-dev libgcrypt20-dev
需要修改CMakeLists.txt文件的140行
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") set(CXX_FLAGS "-Wall -Wextra -std=c++11")
开始编译
cd cppcms-1.0.5/ mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. make make test
sudo make install
版权声明:本文为博主原创文章,未经博主允许不得转载。
ubuntu 15.04 clang++ 3.6 编译cppcms1.0.5
原文地址:http://blog.csdn.net/csfreebird/article/details/48879677