On 9/29/2010 2:31 PM, David Jardine wrote:
On Wed, Sep 29, 2010 at 06:46:20PM +0100, 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 could add

alias gcc='gcc -lm ' (note the last space)

to /etc/profile


Good idea. There may be an existing alias for gcc, then he might want to edit it carefully, rather than simply adding the line.

:)




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4ca39e4b.9000...@allums.com

Reply via email to