From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22797 invoked by alias); 22 Dec 2004 20:47:40 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22754 invoked from network); 22 Dec 2004 20:47:33 -0000 Received: from unknown (HELO web51009.mail.yahoo.com) (206.190.39.128) by sourceware.org with SMTP; 22 Dec 2004 20:47:33 -0000 Received: (qmail 96099 invoked by uid 60001); 22 Dec 2004 20:47:33 -0000 Message-ID: <20041222204733.96097.qmail@web51009.mail.yahoo.com> Received: from [208.251.134.130] by web51009.mail.yahoo.com via HTTP; Wed, 22 Dec 2004 12:47:32 PST Date: Wed, 22 Dec 2004 20:47:00 -0000 From: Brian Desany Subject: Re: Quick question about "print EXPR" To: Peter Barada , brian@desany.com Cc: gdb@sources.redhat.com In-Reply-To: <20041222204000.1CFD99842C@baradas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-12/txt/msg00113.txt.bz2 > Did you include in your program? Yep, I did (the program itself works properly). FWIW the only lines of the program that aren't listed in my original post are: #include #include And just in case it matters, I compiled using the command "cc -lm -g test.c". If I compile with "gcc -lm -g test.c", "p floor(whatever)" is always 16 (rather than 1 as in the original post). [bdesany]$ cc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81) [bdesany]$ gcc -v Reading specs from /home/bdesany/sys/lib/gcc/i686-pc-linux-gnu/3.4.2/specs Configured with: ./configure --prefix=/home/bdesany/sys Thread model: posix gcc version 3.4.2 Thanks- -Brian. __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo