A
ashnin
Hi,
Please clarify my doubt.
My source dir contains combination of C and C++ files
If I compile it using gcc 3.4.3 version, it works fine with some easy
warnings which I can clear.
But if I compile it using gcc 4.1.2 it throws a warning for each .cpp
file I compile, which I could not clear
"cc1plus: warning: command line option "-Wdeclaration-after-statement"
is valid for C/ObjC but not for C++"
What is the difference between both the compilation? Why is it
throwing this warning when using gcc 4.1.2? How to avoid this? Is this
anything to do with the specs file?
Regards
ashnin
Please clarify my doubt.
My source dir contains combination of C and C++ files
If I compile it using gcc 3.4.3 version, it works fine with some easy
warnings which I can clear.
But if I compile it using gcc 4.1.2 it throws a warning for each .cpp
file I compile, which I could not clear
"cc1plus: warning: command line option "-Wdeclaration-after-statement"
is valid for C/ObjC but not for C++"
What is the difference between both the compilation? Why is it
throwing this warning when using gcc 4.1.2? How to avoid this? Is this
anything to do with the specs file?
Regards
ashnin