Memory issue

Torbjorn Granlund tg at gmplib.org
Fri Dec 17 09:39:09 CET 2010


Craig Helfgott <chelfgott at gmail.com> writes:

  1) Do I need to run
  mpf_clear if I am using mpf_class instead of mpf_t?

You need to match new's and delete's in C++.

Vague questions cannot reslt in anythiung but at best vague replies.  If
you want god replies, state the facts carefully, with example code.

  2)  Is there any reason
  that g++ with the -lgmp and -lgmpxx flags would automatically parallelize a
  loop at compile-time?

See the linker documentation (man ld) for the function of the -l option.

-- 
Torbjörn


More information about the gmp-discuss mailing list