I am suing RHEL.I have a small C/Cpp program and I am trying the possible combinations during compilations that I can use.I want to see the output of all the options I am trying to redirect this output in a file but I dont get to see the output in the file.This is what I am trying to do
My c program is named as prog4.cpp
static int Code;
int main (void)
printf("Value is %d",Code);
printf("Value is %d",code2);
now I am compiling this program with multiple options of g++ such as -Wall,-fno-inline etc etc I want to see the individual output for these options but I cannot see it in the file that I am redirecting the output to.Can someone help?