[petsc-dev] meaning of PETSC_USE_EXTERN_CXX?

Matthew Knepley knepley at gmail.com
Tue Mar 5 17:52:43 CST 2013

On Tue, Mar 5, 2013 at 6:49 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>    From the below I am assuming that PETSC_USE_EXTERN_CXX is equivalent to
> --with-c-support   Is this correct?
>    And I assume that --with-c-support means that PETSc is compiled with
> C++ but does not use name mangling   Is this correct?
>    If the above two are correct does the name PETSC_USE_EXTERN_CXX
> actually correlate to what it means? Could it be changed to something
> meaningful?

Do you mean like PETSC_NO_NAME_MANGLING?


>     Please explain,
>      Barry
> #if defined(PETSC_CLANGUAGE_CXX) && !defined(PETSC_USE_EXTERN_CXX) &&
> !defined(__cplusplus)
> #error "PETSc configured with --with-clanguage=c++ and NOT
> --with-c-support - it can be used only with a C++ compiler"
> #endif

What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130305/310c1def/attachment.html>

More information about the petsc-dev mailing list