How to compile C++ boost library with Intel C++ compiler
2013-02-22 20:13
405 查看
1. Download the source file of boost from www.boost.org;
install intel c++ compiler
2. Extract it into a directory as you like; say
3. configure the intel compiler environment variables
1) open a command terminal;
2) run the batch file compilervars, (in Windows, compilervars.bat, in Linux compilervars.sh and compilervars.csh) as intel_installation_dir/compilervars.bat -ia32;
3) do as the boost installation manual instructs(it can be found at index.html in the boost directory);
Note: step 3) must be done in the same terminal as step 2) since the set environment variables only has effect on the following commands in the same terminal; otherwise, in Windows, a small window would consistently pops up, saying files with some
format cannot opened.
4. Up to now, the intel compiler should be starting the compilation boost library from the source code. After the compilation finishes, we can copy the produced libraries to the existing boost library which may be compiled by visual studio compiler at some
time before. This can save us from creating another separate directory and setting another system environment variable.
install intel c++ compiler
2. Extract it into a directory as you like; say
3. configure the intel compiler environment variables
1) open a command terminal;
2) run the batch file compilervars, (in Windows, compilervars.bat, in Linux compilervars.sh and compilervars.csh) as intel_installation_dir/compilervars.bat -ia32;
3) do as the boost installation manual instructs(it can be found at index.html in the boost directory);
Note: step 3) must be done in the same terminal as step 2) since the set environment variables only has effect on the following commands in the same terminal; otherwise, in Windows, a small window would consistently pops up, saying files with some
format cannot opened.
4. Up to now, the intel compiler should be starting the compilation boost library from the source code. After the compilation finishes, we can copy the produced libraries to the existing boost library which may be compiled by visual studio compiler at some
time before. This can save us from creating another separate directory and setting another system environment variable.
相关文章推荐
- C++ How to tell if a .lib file was compiled with compiler option /MT, /MD, /MTd, /MDd, /clr etc?
- How to build CP2K with Intel Compiler 12.1, OpenMPI-1.4.3 and Infiniband Support
- How to Compile XviD with Microsoft Visual C++ 6.0(转)
- How to Compile XviD with Microsoft Visual C++ 6.0(zhuan)
- Step by Step - How to create a c++ library with NDK on Android Studio 1.5 (not experimental way)
- How to use Intel C++ Compiler in Visual Studio 2008
- How to compile C++ with GCC
- How to Compile XviD with Microsoft Visual C++ 6.0
- How to compile a C/C++ DLL for 64 bit with Visual Studio?
- How to convert enum to string with boost library
- Calculate the CDF of Poisson Distribution with Boost C++ Library
- How to read a PCap file from Wireshark with C++
- question 002: dev c++ 当中如何调整字体大小?How to get the first program with C++? c++属于什么软件?
- How to compile openssl library
- How to link with the correct C Run-Time (CRT) library
- How to compile Tensorflow with SSE4.2 and AVX instructions?
- How to get the password text in a text with password property from another process using C++ - 用C++如何从不同进程获取密码框文本
- How to Use the Dynamic Link Library in C++ Linux (C++调用Delphi写的.so文件)
- Beyond the C++ Standard Library: An Introduction to Boost -- Library 5.2 Usage
- How to Properly Write Received UDP Audio Data to ALSA with C++