From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21096 invoked by alias); 29 Jun 2005 20:11:13 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 21077 invoked by uid 22791); 29 Jun 2005 20:11:09 -0000 Received: from mailhub2.lawrence.edu (HELO lawrence.edu) (143.44.65.114) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 29 Jun 2005 20:11:09 +0000 Received: from [143.44.122.172] (HELO [127.0.0.1]) by lawrence.edu (CommuniGate Pro SMTP 4.2.7) with ESMTP id 10710689 for gcc-help@gcc.gnu.org; Wed, 29 Jun 2005 15:11:08 -0500 Message-ID: <42C3005B.8070903@atlantisvalley.com> Date: Wed, 29 Jun 2005 20:11:00 -0000 From: Michael Swanson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: RE: Problem compiling simple Ada program Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-06/txt/msg00208.txt.bz2 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