From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16802 invoked by alias); 20 Nov 2001 12:14:20 -0000 Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Received: (qmail 16729 invoked from network); 20 Nov 2001 12:14:15 -0000 Received: from unknown (HELO alpha1.ebi.ac.uk) (193.62.196.122) by sourceware.cygnus.com with SMTP; 20 Nov 2001 12:14:15 -0000 Received: from BRYCE.ebi.ac.uk (bryce.dhcp.ebi.ac.uk [193.62.198.162]) by alpha1.ebi.ac.uk (8.9.3/8.9.3) with ESMTP id MAA189863; Tue, 20 Nov 2001 12:13:53 GMT Date: Mon, 12 Nov 2001 17:36:00 -0000 Message-ID: <5965-Tue20Nov2001121353+0000-starksb@ebi.ac.uk> X-Mailer: emacs 20.7.1 (via feedmail 9-beta-7 I); VM 6.92 under Emacs 20.7.1 From: David Starks-Browning MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "vipin aravind" Cc: Subject: Re: gdb trouble In-Reply-To: <00d701c1719c$798a53f0$b90806c0@vipin> References: <00d701c1719c$798a53f0$b90806c0@vipin> X-SW-Source: 2001-11/txt/msg00662.txt.bz2 On Tuesday 20 Nov 01, vipin aravind writes: > oops sorry the executeable was created as a.exe and gdb a worked > How do I get the prefix same as the source file. "man gcc" or "info gcc" will tell you: gcc -o test test.c does what you are asking. BUT DON'T DO THAT!!! Don't create executables called "test" or "test.exe". Unix (and thus Cygwin) has its own version of "test", and you will have trouble getting the right "test" invoked. Choose some other name instead: gcc -o myprog test.c or gcc -o a test.c Regards, David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/