Re: [petsc-dev] Compiling C code with C compiler
4 Apr
2011
4 Apr
'11
9:11 p.m.
On Mon, 4 Apr 2011, Sean Farley wrote:
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
But why would I do that? The whole point of invoking 'clang++' is to to compile the code as 'C++' - not as 'C' Satish
5607
Age (days ago)
5607
Last active (days ago)
0 comments
1 participants
participants (1)
-
Satish Balay