This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc question
- From: "Ernest L. Williams Jr." <ernesto at ornl dot gov>
- To: Brendan Darrer <bjdarrer2 at hotmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 26 Feb 2006 18:51:55 -0500
- Subject: Re: gcc question
- References: <BAY102-F239DC1AA1A034F5438FFF4E7F10@phx.gbl>
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
>
>