[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compilation in C and ADA
From: |
Rusi |
Subject: |
Re: Compilation in C and ADA |
Date: |
Tue, 19 Jul 2016 20:43:15 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Tuesday, July 19, 2016 at 7:16:58 PM UTC+5:30, Edward Zacharek wrote:
> Hello,
>
> I tried to compile two files, one in ADA, the other in C, and both have
> failed.
>
> The ADA file was a simple one, a basic "Hello World" code, which I found
> over here:
> https://gcc.gnu.org/onlinedocs/gnat_ugn/Running-a-Simple-Ada-Program.html
>
> In order to compile the adb file, I click on tools->compile, and press on
> "enter", and this is the error message that I receive:
> "make -k
> make: *** No targets specified and no makefile found. Stop.
>
> Compilation exited abnormally with code 2 at Tue Jul 19 14:10:18".
>
> As for a C file, this is what I get:
>
> "make -k
> make: *** No targets specified and no makefile found. Stop.
>
> Compilation exited abnormally with code 2 at Tue Jul 19 14:11:04",
> So I get exactly the same error.
> I think I am doing something wrong.
>
> Can you please help me out?
This is not really an emacs question -- which is ok in general.
In this case it would be better if you followed the instructions of the link
you gave and run:
gcc -c hello.adb
after the prompt ($) as indicated. ie run it in a shell
Once you do that and it runs making it run in emacs is a small thing
If it doesn’t, solving that has nothing to do with emacs
- Re: Compilation in C and ADA, (continued)
Re: Compilation in C and ADA, Kendall Shaw, 2016/07/23
Re: Compilation in C and ADA,
Rusi <=