Boost logo

Boost Users :

Subject: [Boost-users] how to correctly compile and use math module (for gmp) (b1.55 win32)
From: eaj68 (eaj68_at_[hidden])
Date: 2014-05-29 14:10:19


When compiling only regex module all works ok, but when I substitute 'math'
for regex in command i get this:

b2 -a --debug-configuration --prefix=C:\boost --address-model=32 --with math
--layout=tagged toolset=gcc variant=release link=static threading=single
runtime-link=static optimization=off
notice: found boost-build.jam at C:/boost/boost-build.jam
notice: loading Boost.Build from C:/boost/tools/build/v2
notice: Searching 'C:\WINDOWS' 'C:\Documents and Settings\Administrator'
'C:\Documents and Settings\Administrator' 'C:\boost\tools/build/v2'
'C:/boost/tools/build/v2/kernel' 'C:/boost/tools/build/v2/util'
'C:/boost/tools/build/v2/build' 'C:/boost/tools/build/v2/tools'
'C:/boost/tools/build/v2/contrib' 'C:/boost/tools/build/v2/.' for
site-config configuration file 'site-config.jam'.
notice: Loading site-config configuration file 'site-config.jam' from
'C:/boost/tools/build/v2'.
notice: Searching 'C:\Documents and Settings\Administrator' 'C:\Documents
and Settings\Administrator' 'C:\boost\tools/build/v2'
'C:/boost/tools/build/v2/kernel' 'C:/boost/tools/build/v2/util'
'C:/boost/tools/build/v2/build' 'C:/boost/tools/build/v2/tools'
'C:/boost/tools/build/v2/contrib' 'C:/boost/tools/build/v2/.' for
user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from
'C:/boost/tools/build/v2'.
notice: Searching '.' for project-config configuration file
'project-config.jam'.
notice: Loading project-config configuration file 'project-config.jam' from
'.'.
warning: toolset msvc initialization: can not find tool cl.exe
warning: initialized from project-config.jam:3
notice: will use 'cl.exe' for msvc, condition <toolset>msvc
notice: [msvc-cfg] condition:
'<toolset>msvc/<architecture>/<address-model>', setup: ''
notice: [msvc-cfg] condition:
'<toolset>msvc/<architecture>/<address-model>32', setup: ''
notice: [msvc-cfg] condition:
'<toolset>msvc/<architecture>x86/<address-model>', setup: ''
notice: [msvc-cfg] condition:
'<toolset>msvc/<architecture>x86/<address-model>32', setup: ''
notice: [msvc-cfg] condition:
'<toolset>msvc/<architecture>/<address-model>64', setup: ''
notice: [msvc-cfg] condition:
'<toolset>msvc/<architecture>x86/<address-model>64', setup: ''
notice: [msvc-cfg] condition:
'<toolset>msvc/<architecture>ia64/<address-model>', setup: ''
notice: [msvc-cfg] condition:
'<toolset>msvc/<architecture>ia64/<address-model>64', setup: ''
notice: [msvc-cfg] condition:
'<toolset>msvc/<architecture>arm/<address-model>32', setup: ''
notice: [cmdline-cfg] toolset gcc not previously configured; attempting to
auto-configure now
notice: will use 'g++' for gcc, condition <toolset>gcc-4.10.0-mingw
notice: using gcc libraries :: <toolset>gcc-4.10.0-mingw :: C:\gcc/bin
C:\gcc/lib C:\gcc/lib32 C:\gcc/lib64
warning: toolset gcc initialization: can not find tool
C:/gcc/i686-pc-mingw32/bin/ar.exe
warning: initialized from
notice: using gcc archiver :: <toolset>gcc-4.10.0-mingw ::
C:/gcc/i686-pc-mingw32/bin/ar.exe
warning: toolset gcc initialization: can not find tool
C:/gcc/i686-pc-mingw32/bin/ranlib.exe
warning: initialized from
notice: using gcc ranlib :: <toolset>gcc-4.10.0-mingw ::
C:/gcc/i686-pc-mingw32/bin/ranlib.exe
notice: using rc compiler :: <toolset>gcc-4.10.0-mingw ::
C:\gcc\bin\windres.exe
link.jam: No such file or directory
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: iostreams: not using bzip2 compression
notice: iostreams: not using bzip2 compression
notice: [python-cfg] Configuring python...
notice: [python-cfg] Registry indicates Python 2.6 installed at
"C:\Python26\"
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'python -c "from sys import *;
print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s'
% (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))"
2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "C:\Python26\python"...
notice: [python-cfg] running command 'C:\Python26\python -c "from sys import
*;
print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s'
% (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))"
2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] No working Python interpreter found.
notice: [python-cfg] falling back to "python"
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter commanC: "python"
notice: [python-cfg] include path: "Include"
notice: [python-cfg] library path: "\libs"
notice: [python-cfg] DLL search path: "<empty>"
error: Unable to find file or target named
error: 'libs/math/build//boost_math'
error: referred to from project at
error: '.'

compiling all the modules without `--where` switch seems to work ok and
produce these modules:
libboost_atomic-mt-s.a
libboost_chrono-mt-s.a
libboost_chrono-s.a
libboost_coroutine-s.a
libboost_date_time-s.a
libboost_exception-s.a
libboost_filesystem-s.a
libboost_graph-s.a
libboost_iostreams-s.a
libboost_locale-mt-s.a
libboost_log_setup-s.a
libboost_log-s.a
libboost_math_c99f-s.a
libboost_math_c99l-s.a
libboost_math_c99-s.a
libboost_math_tr1f-s.a
libboost_math_tr1l-s.a
libboost_math_tr1-s.a
libboost_prg_exec_monitor-s.a
libboost_program_options-s.a
libboost_random-s.a
libboost_regex-s.a
libboost_serialization-s.a
libboost_signals-s.a
libboost_system-mt-s.a
libboost_system-s.a
libboost_test_exec_monitor-s.a
libboost_thread-mt-s.a
libboost_timer-s.a
libboost_unit_test_framework-s.a
libboost_wave-s.a
libboost_wserialization-s.a

but when I try to make an appication that uses gmp:
(from :
http://www.boost.org/doc/libs/1_53_0/libs/multiprecision/doc/html/boost_multiprecision/tut/ints/gmp_int.html
) that is only the include part to see it works:

#include <iostream>
#include <boost/multiprecision/gmp.hpp>
int main() { return 0; }

I get:

In file included from C:\boost_gmp_test.cpp:2:0:
c:\boost/boost/multiprecision/gmp.hpp:19:17: fatal error: gmp.h: No such
file or directory
 #include <gmp.h>
                 ^
compilation terminated.

But I am sure that I have correctly installed boost ang GCC because regex
module compiles and works without any issue.

--
View this message in context: http://boost.2283326.n4.nabble.com/how-to-correctly-compile-and-use-math-module-for-gmp-b1-55-win32-tp4663011.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net