Compiling BoostCompiling Boost - LinuxCompiling boost under Linux is extremely simple compared to Windows. There are not so many optional compilers, not so long compilation time, not so much disk usage, unified include and lib directories, you are familiar with the command line, do not use IDE, and do not need me to explain how to configure EditPlus in such a long-winded way. The first thing is to download boost. You can find a suitable version here http://sourceforge.net/projects/boost. For example, I downloaded boost_1_33_1.tar.gz and unzipped it to /opt. tar xzvf boost_1_33_1.tar.gz -C/optReminder: You need root privileges to do these things. Enter the boost directory: cd /opt/boost_1_33_1First, we need to compile bjam: cd tools/build/jam_src/./build.shThe compilation is completed soon. By default, bjam will be copied to /usr/local/bin/bjam. If not, copy the bjam file under tools/build/jam_src/bin_linuxx86/ to boost_1_33_1/ Now you can use bjam to compile boost. cd ../../..bjam -sTOOLS=gcc install (./bjam \"-sTOOLS=gcc\" install) The compilation time will not be as long as that of Windows. It took about 40 minutes to compile on my computer. You can use the df command to check the disk usage before and after. On my computer, compiling boost took 500M of space. Using install will copy the header files to /usr/local/include/boost-1_33_1 and the generated lib to /usr/local/lib. After these are completed, remember to use ldconfig to update the dynamic link library. Before testing the two examples, let\'s set some environment variables. ……
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore