[petsc-dev] Compiling C code with C compiler

Sean Farley sean at mcs.anl.gov
Mon Apr 4 21:04:48 CDT 2011


>
> ok '-x c++' is getting rid of the warning.
>
> asterix:/home/balay/junk>clang sizeof.c
> asterix:/home/balay/junk>clang++ sizeof.c
> clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior
> is deprecated
> asterix:/home/balay/junk>clang++ -x c++ sizeof.c
> asterix:/home/balay/junk>


Yes, and the other way works too:

$ clang++ -x c sizeof.c

Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110404/cd45c2a9/attachment.html>


More information about the petsc-dev mailing list