--with-clanguage: c and c++

Satish Balay balay at mcs.anl.gov
Fri Feb 29 16:51:11 CST 2008


On Fri, 29 Feb 2008, Yujie wrote:

> Hi, everyone
> 
> When PETSc is compiled with "--with-clanguage=C" or "--with-clanguage=C++",
> what is the difference between them, the parameters in the functions are
> adjusted or else?

Primary difference is that the default compiler used to compile the
sources is c vs c++.

[So, if the user is developing with c++, its easiest to build PETSc
with c++, and use the default makefiles to compile user code aswell]

There are some components of PETSc [sieve] that are coded in c++, and
can be built only in the c++ mode.

Satish




More information about the petsc-users mailing list