Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Ubuntu 14.04 CodeBlocks configuration manually compile Boost 1.57.0     - Encrypted with GnuPG signature to verify the authenticity and integrity of downloaded file (Linux)

- Binary search is really easy as you think you do (Programming)

- Linux Getting Started Tutorial: How to set up a static MAC address on VMware ESXi virtual machine (Mobile)

- Ubuntu and derivative users to install the system launcher SimDock 1.3 (Linux)

- The first deployment of cross-platform operation Rafy record (Server)

- VirtualBox install Windows 8.1 has encountered an error 0x000000C4 solutions (Linux)

- Use calcurse schedule appointments and to-do in the Linux terminal (Linux)

- Linux the best download manager uGet (Linux)

- Grub2 Boots the openSUSE installation image (Linux)

- Learning the Linux powerful network management capabilities (Linux)

- Ftp user to create multiple virtual machines to support different access rights Examples (Server)

- Windows and Ubuntu dual system, repair of two ways UEFI boot (Linux)

- After Oracle 11g dataguard failover rebuild the archive logs are not applied to be NO problem (Database)

- Bash added to the Vi mode indicator (Linux)

- Ora-1092: OPI colleague K aborting process --- killed by OO Well killer (Database)

- C ++ 11 feature: auto keyword (Programming)

- Ease of use "Explain Shell" script to understand Shell command (Linux)

- CentOS 6.5 install Firefox (Linux)

- Getting Started with Linux: Learn how to install and access CentOS 7 Remote Desktop on a VPS (Server)

- MongoDB Learning the notes (Database)

  Ubuntu 14.04 CodeBlocks configuration manually compile Boost 1.57.0
  Add Date : 2017-01-08      
  Environment: Ubuntu 14.04 32bit, boost_1_57_0

Preparation: boost the use of other libraries, so in order to boost the use of appropriate functions, the system may need to install the missing library
apt-get install mpi-default-dev # installation mpi library
apt-get install libicu-dev # UNICODE character set supports regular expressions
apt-get install python-dev # if needed python

apt-get install libbz2-dev # If the compiler error: bzlib.h: No such file or directory

After the above libraries installed, you can compile the boost library. Unzip boost_1_57_0.tar.gz:

tar zxvf boost_1_57_0.tar.gz
sudo mv boost_1_57_0 / usr / local /

Modify permissions:

chmod -R 755 / usr / local / boost_1_57

Go to boost root directory, execute the script:

sudo ./bootstrap.sh
sudo ./bjam --with-date_time // only compiled date_time

Compiled tips, follow the prompts to configure codeblocks

codeblocks menu bar setting-> compiler-> Search directories

In the compiler to add: / usr / local / boost_1_57_0

In the linker to add: / usr / local / boost_1_57_0 / stage / lib

Test code:

#include < iostream>
#include < thread>
#include < chrono>
#include < clocale>

#include "boost / date_time / gregorian / gregorian.hpp"
#include "boost / date_time / posix_time / posix_time.hpp"

using namespace std;
using namespace boost;
using namespace boost :: gregorian;
using namespace boost :: posix_time;

int main ()
 date d = day_clock :: local_day ();
 date_facet * dfacet = new date_facet ( "% Y% m month in% d day");
 cout.imbue (locale (cout.getloc (), dfacet));
 cout << d << endl;

 ptime tp = microsec_clock :: local_time ();
 time_facet * tfacet = new time_facet ( "% Y Year% m month% d day% H% M division point% S% F s");
 cout.imbue (locale (cout.getloc (), tfacet));
 cout << tp << endl;

 return 0;
- To install OwnCloud 7.0.4 under Ubuntu (Linux)
- OpenGL Superb Learning Notes - Fragment Shader (Programming)
- CentOS7 boot systemd introduction and use of management (Linux)
- Do not enter password login ssh (Server)
- Linux linux system security (Linux)
- Linux loopback adapter Driven Design (Programming)
- Integrated security administrator Linux accident management (Linux)
- 6 common PHP security attacks (Linux)
- High-performance open-source http accelerator Varnish introduce (Server)
- Apache POI Excel Document Processing (Linux)
- Ubuntu security settings and tools (Linux)
- Spark and Hadoop comparison (Server)
- How to cool down your Ubuntu system (Linux)
- dmidecode command Detailed (Hardware information) (Linux)
- Go constructed using an interpreted language (Programming)
- To remove those IP is prohibited Fail2ban on CentOS 6/7 (Server)
- Open log in Hibernate (Programming)
- It is time to upgrade your gulp 4.0 (Programming)
- To repair Shell script by default open in Ubuntu (Linux)
- 30 Practical Linux system administrators will learn the command (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.