From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19584 invoked by alias); 17 Feb 2003 15:58:53 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 19576 invoked from network); 17 Feb 2003 15:58:53 -0000 Received: from unknown (HELO web11006.mail.yahoo.com) (216.136.131.56) by 172.16.49.205 with SMTP; 17 Feb 2003 15:58:53 -0000 Message-ID: <20030217155852.59238.qmail@web11006.mail.yahoo.com> Received: from [203.162.59.144] by web11006.mail.yahoo.com via HTTP; Mon, 17 Feb 2003 07:58:52 PST Date: Mon, 17 Feb 2003 15:58:00 -0000 From: japan Subject: Re: I can't compile this program! To: gcc-help@gcc.gnu.org In-Reply-To: <200302151804.55692.kilski@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-02/txt/msg00138.txt.bz2 Although I included math.h in the source code, why I must add -lm option when we compile one program using math functions??? Ex: gcc -lm -o test test.c (test.c uses math functions and have already included math.h!) What libs we must link when compiling like that? Thanks very much! __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com