Assume there are 3 files which I need to compile, a.cpp, b.cpp and c.cpp. When I compile the above 3 files using microsoft compiler, the compiler outputs the file name which it completed compiling.
ex: cl a.cpp b.cpp c.cpp
a.cpp
b.cpp
c.cpp
But GCC compiler doesnot output the filename which it completed compiling.
ex: g++ a.cpp b.cpp c.cpp
//no output is shown.
Is there any option in GCC and clang which will show the filename after the compilation of it.
Sorry for the terrible english. Also I don't need any suggestions about achieving the desired result using make files.
Thanks inadvance
g++ a.cpp && echo a.cpp && g++ b.cpp && echo b.cpp && g++ c.cpp && echo c.cpp? (Or, equivalently,for f in a.cpp b.cpp c.cpp ; do g++ $f || break ; echo $f ; done)