public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Michael Swanson <rearden@atlantisvalley.com>
To: gcc-help@gcc.gnu.org
Subject: RE: Problem compiling simple Ada program
Date: Wed, 29 Jun 2005 20:11:00 -0000	[thread overview]
Message-ID: <42C3005B.8070903@atlantisvalley.com> (raw)

I am trying to compile and link a simple Ada program on Cygwin.  The 
code for this looks like:
Hello.adb:

with Text_IO;

Procedure Hello is
begin
	Text_IO.Put_Line("Hello");
end;

This compiles fine, but when I try to link the hello.o file, I get this 
error:
hello.o:hello.adb:(.text+0x18): undefined reference to 
'_ada__text_io__put_line__2'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libvmain.o):: 
undefined reference to '_WinMain@16'
collect2: ld returned 1 exit status

This looks like I don't have the right libraries for Ada, but I have 
installed the entire Devel and Lib group in Cygwin.  Is there a simple 
solution to this?  Thanks ahead of time for any help you can give me.

Mike Swanson

             reply	other threads:[~2005-06-29 20:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-29 20:11 Michael Swanson [this message]
2005-06-29 20:20 ` Duncan Sands

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42C3005B.8070903@atlantisvalley.com \
    --to=rearden@atlantisvalley.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).