From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22849 invoked by alias); 26 Feb 2006 23:52:07 -0000 Received: (qmail 22841 invoked by uid 22791); 26 Feb 2006 23:52:07 -0000 X-Spam-Check-By: sourceware.org Received: from emroute3.ornl.gov (HELO emroute3.ornl.gov) (160.91.4.110) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 26 Feb 2006 23:52:07 +0000 Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IVB00DOCJMSAY@emroute3.ornl.gov> for gcc-help@gcc.gnu.org; Sun, 26 Feb 2006 18:52:04 -0500 (EST) Received: from [192.168.1.102] (c-68-34-222-4.hsd1.tn.comcast.net [68.34.222.4]) by emroute3.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTPSA id <0IVB00L40JMJN5@emroute3.ornl.gov>; Sun, 26 Feb 2006 18:52:04 -0500 (EST) Date: Sun, 26 Feb 2006 23:52:00 -0000 From: "Ernest L. Williams Jr." Subject: Re: gcc question In-reply-to: To: Brendan Darrer Cc: gcc-help@gcc.gnu.org Message-id: <1140997915.31449.2.camel@bengal> MIME-version: 1.0 Content-type: text/plain Content-transfer-encoding: 7bit References: X-IsSubscribed: yes 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 X-SW-Source: 2006-02/txt/msg00226.txt.bz2 On Sun, 2006-02-26 at 22:53 +0000, Brendan Darrer wrote: > Hi, > > I have a problem compiling and running a simple gcc programme. > > directory contains: > > a.exe main.cpp main.exe > > > I have greated main.exe using " gcc main.cpp -o main " > > I have tried typing " main " & " main.exe " > > error message - " bash: main.exe: command not found " > > What suggestions can you give to solve this. Sounds like you have a path problem. Are you running on UNIX or Windows? If you are on UNIX/Linux, then execute the following: ./main.exe You need to tell the system that command is located in the current directory. Thanks, Ernest > > Regards, > > Brendan Darrer > >