Hello Everybody.
Currently I'm working on a C++ project that is using some third-party C files also. I have configured the Code::Blocks project (compiler-options) to use C++ 11.
Now I get the following warning message:
||warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C|
Actually the content of the message is understandable. Furthermore the build-result is working, thus you may tell me just to ignore this warning or you may may suggest to deactivate this warning. But my experience is that it is the better solution to solve the root-cause of a warning to prevent future problems.
Is it possible some how to configure for a single project and for a special kind of file (in my case cpp only) to use additional compiler-options only to avoid that other files will be compiled with this option ?
I'm using the 25th September 2016 build (10912) of Code::Blocks on Windows 7 with MinGW TDM-GCC 4.9.
Best regards,
Eckard.