This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc question
- From: "Brian Budge" <brian dot budge at gmail dot com>
- To: "Brendan Darrer" <bjdarrer2 at hotmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 27 Feb 2006 07:29:35 -0800
- Subject: Re: gcc question
- References: <BAY102-F239DC1AA1A034F5438FFF4E7F10@phx.gbl>
HI Brendan -
This is not really a gcc question, but here's a quick answer:
If you are using linux/unix, most likely "." is not in your path, so type:
./main.exe.
This may also apply for DOS, but I'm not sure about that.
Brian
On 2/26/06, Brendan Darrer <bjdarrer2@hotmail.com> 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.
>
>
> Regards,
>
> Brendan Darrer
>
>
>