This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Problem compiling simple Ada program
- From: Michael Swanson <rearden at atlantisvalley dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 29 Jun 2005 15:08:02 -0500
- Subject: RE: Problem compiling simple Ada program
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(libcmain.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
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/