sisyph...@optusnet.com.au wrote:
> I was wondering more about name mangling and decorations.

The C headers declare GMP's / MPIR's C functions with 'extern "C"' if
__cplusplus is defined (i.e., when you're using them from C++ code),
such that their names don't get mangled.


> According to the gmp manual at
> https://gmplib.org/manual/Headers-and-Libraries.html#Headers-and-Libraries
> C++ builds need to link to “-lgmpxx –lgmp” but I don’t know how that
> translates to mpir.

'-lmpirxx -lmpir'.

Unless you configured with '--enable-gmpcompat'.

Still, as Bill said, this is only necessary if you really use the C++
interface of GMP/MPIR.


-leif

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to