[petsc-dev] Compiling C code with C compiler
Barry Smith
bsmith at mcs.anl.gov
Mon Apr 4 20:40:04 CDT 2011
configure.log ????
What about passing the compiler option -x C++? Or maybe you are already doing that but I would't know because you didn't send configure.log
It's bad enough when our ignorant users don't send necessary configure.log files but you?
Barry
On Apr 4, 2011, at 8:33 PM, Sean Farley wrote:
> When specifying --with-clanguage=C++ (as required by sieve) all C code (any .c file) is still compiled with the C++ compiler. This behavior is deprecated as clang will warn you:
>
> clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
>
> C is not a subset of C++ and treats structs very differently than C++. This should really be handled correctly but I can't read the conf/rules file no more than I can read Greek.
>
> Sean
> <make.log>
More information about the petsc-dev
mailing list