Reputation: 1
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
Upvotes: 0
Views: 1655
Reputation: 72639
No, there is no such option. Unix tools are designed to do one thing well. Compilers compile and echo $filename
echoes arguments.
As an alternative, make
by default outputs the commands it executes. Use it for your build and you have many options.
Upvotes: 1