[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
passing flags to C compiler but not to C++ compiler
From: |
Vincent Torri |
Subject: |
passing flags to C compiler but not to C++ compiler |
Date: |
Sat, 27 Jul 2013 07:32:10 +0200 |
hello
in my sources, i have both C and C++ files. Something like
my_lib_la_SOURCES = foo.c foo.cpp
I want to pass, for example, -Wdeclaration-after-statement to gcc. Hence,
when compiling foo.cpp, i have the warning :
cc1plus.exe: warning: command line option '-Wdeclaration-after-statement'
is valid for C/ObjC but not for C++
How can I remove this warning when compiling c++ files ?
thank you
Vincent Torri
- passing flags to C compiler but not to C++ compiler,
Vincent Torri <=
Re: passing flags to C compiler but not to C++ compiler, Robert Boehne, 2013/07/27