I have few flags I want to add to my gcc compilation, so I alias
ed them as
alias gcc_flags='-std=c99 -Wall -pedantic -Wextra -Wconversion'
and tried to compile like this:
$ gcc gcc_flags file_name.c -o object_name -L/usr/lib/i386-linux-gnu -lcurl
gcc: error: gcc_flags: No such file or directory
When compiling without the alias, i.e.
gcc -std=c99 -Wall -Wextra -Wconversion -pedantic file_name.c -o object_name -L/usr/lib/i386-linux-gnu -lcurl
the compilation works just fine. Why is that?
gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
alias gcc_flags='-std=c99 -Wall -pedantic -Wextra -Wconversion'
appears on my alias list- Ubuntu version -
Release: 14.04
By the way, isn't it about time for gcc
to compile with -std=c99
by default?