On 9/29/2010 12:46 PM, abdelkader belahcene wrote:
hi, by default I have to add option -lm to the command gcc -lm file.c when I use math functions. Where can I configure gcc to add it to the default gcc, after what I don't need the option -lm , just gcc file.c thanks for help
You can pass a filename of a file containing your command line options using "@file", where "file" is the filename, but if you type that every time, you aren't gaining anything. That method is really for cases when there is a long list of options, or they are complicated and easy to get wrong.
Just put everything in a makefile, and call make.