quadmath.h is missing something like: #ifdef __cplusplus extern "C" { #endif /* Content of file */ #ifdef __cplusplus } /* End extern "C". */ #endif As it is, C++ users who wish to use libquadmath have to do this manually before including quadmath.h. E.g. http://gcc.gnu.org/ml/gcc-help/2011-06/msg00148.html or for a more recent example http://stackoverflow.com/questions/13571621/quadruple-precision-in-g-4-6-3-linux-using-quadmath
Created attachment 29593 [details] Added cplusplus macro usage
Janne and Shakth: The proposal is fine with me. However, it would help if you would simply submit a/the patch. For what it is worth, I think the patch is fine together with a ChangeLog.
@Janne: I had submitted the patch and ChangeLog at: http://gcc.gnu.org/ml/gcc-patches/2013-03/msg00223.html
Author: jakub Date: Thu Mar 7 07:53:10 2013 New Revision: 196517 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196517 Log: PR libquadmath/55473 * quadmath.h: Add 'extern "C"' block for C++ use. Modified: trunk/libquadmath/ChangeLog trunk/libquadmath/quadmath.h
Fixed.