From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Can't create executable file.
Date: Thu, 6 Mar 2014 09:41:42 +0100
Date: 2014-03-06T09:41:42+01:00 [thread overview]
Message-ID: <1j0wgl36am4lg$.ko8uso1ka9l7$.dlg@40tude.net> (raw)
In-Reply-To: 87d943b8-5907-4d0f-9e80-e3c99402472c@googlegroups.com
On Thu, 6 Mar 2014 00:35:04 -0800 (PST), oktawian.lagiewski@gmail.com
wrote:
> When i use gcc - program.adb i get two new files (ali and o). I wanted to create
> executable so i typed gnatbind program but i get message:
>
> "program.adb:1: Program cannot be used as a main program.
> Help me please, I'm trying to learn but there is not much info about
> command prompt compiling. Below is the code for .adb and .ads :
[...]
You put program2 into a package (Program). Such program cannot be used as
main. Move it outside the package, e.g. into the file program2.adb:
procedure Program2 is
begin
...
end Program2;
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2014-03-06 8:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 8:35 Can't create executable file oktawian.lagiewski
2014-03-06 8:41 ` Dmitry A. Kazakov [this message]
2014-03-06 20:45 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox