compilation in ubuntu
I am a engg student,
I am learning programming in C.
Hence, i want to execute a program in Ubuntu 12.04,
after referring to a book.
i learned to write (in terminal),
gcc -g -O0 -Wall infilename.c -o outfilename.o
gcc -Wall infilename.c -o outfilename.o
also by reading the posts in internet,
they say to write
gcc infilename.c -o outfilename
gcc -Wall -W -Werror infilename.c -o outfilename
which one should i choose and when,
please explain me.
in a lay-man's language
Re: compilation in ubuntu
Thread closed. Please do not post duplicates, it dilutes community effort.
Tags for this Thread