Boost logo

Boost :

Subject: Re: [boost] gmp-5.1.2 / boost-1.54 / multiprecision lib
From: Christopher Kormanyos (e_float_at_[hidden])
Date: 2013-07-04 17:23:14


>> I'm a bit of a newbie and I ran into some issues using gmp with boost.

>You need to add

>-lgmp
>to the end of your command line, and probably an -L option before that to
>point to the directory containing the gmp library files - please see the GCC
>manual for information on those options.
>HTH, John.

Correct. Because, when using these data types, Boost.Multiprecision
simply wraps GMP. Therefore the underlying GMP library needs to
be linked into the project.

Boost.Multiprecision also provides its own set of independent types
such ass cpp_int, etc.

Sincerely, Chris.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk