hello all,
i want to compile a large C project with g++ compiler.
The C project has a lot of structures initialised by designated initialisers which are unfortunately not recognised in g++.
Is there a way to compile C project with designated initialisers (which is a C99 standard) using g++ with some options set?
If you can, I'd recommend using gcc instead of g++. There is no point in calling the C++ compiler driver unless you are using some C++.
If you are intent on using g++ and have a recent version (4.4.x or higher - check using `g++ --version'), you can use the -std=c++0x flag, which turns on preliminary support for features in the next standard of C++, something known as C++0x.