[petsc-dev] Compiling C code with C compiler

Sean Farley sean at mcs.anl.gov
Mon Apr 4 20:33:20 CDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110404/0c11e7c8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: application/octet-stream
Size: 126696 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110404/0c11e7c8/attachment.obj>


More information about the petsc-dev mailing list