[petsc-dev] Compiling C code with C compiler
Satish Balay
balay at mcs.anl.gov
Mon Apr 4 21:22:53 CDT 2011
On Mon, 4 Apr 2011, Sean Farley wrote:
> >
> > But why would I do that? The whole point of invoking 'clang++' is to to
> > compile the
> > code as 'C++' - not as 'C'
>
>
> Why not try to compile C code with a C compiler and C++ code with a C++
> compiler? (Perhaps I missed a previous discussion?)
What did you expect when you used --with-clanguage=C++ for your buid? Or
were you misunderstanding what this options means wrt PETSc build?
Satish
> Dmitry brought up an
> interesting question of which I don't know the answer off the top of my
> head.
>
> Dmitry, is there a small code example that shows this?
>
> Sean
>
More information about the petsc-dev
mailing list