From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28065 invoked by alias); 29 Jun 2005 20:20:03 -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 28025 invoked by uid 22791); 29 Jun 2005 20:19:58 -0000 Received: from postfix3-2.free.fr (HELO postfix3-2.free.fr) (213.228.0.169) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 29 Jun 2005 20:19:58 +0000 Received: from mna75-2-82-67-197-146.fbx.proxad.net (mna75-2-82-67-197-146.fbx.proxad.net [82.67.197.146]) by postfix3-2.free.fr (Postfix) with ESMTP id B41B6C033; Wed, 29 Jun 2005 22:19:55 +0200 (CEST) From: Duncan Sands To: gcc-help@gcc.gnu.org Subject: Re: Problem compiling simple Ada program Date: Wed, 29 Jun 2005 20:20:00 -0000 User-Agent: KMail/1.8.1 Cc: Michael Swanson References: <42C3005B.8070903@atlantisvalley.com> In-Reply-To: <42C3005B.8070903@atlantisvalley.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506292219.54777.duncan.sands@math.u-psud.fr> X-SW-Source: 2005-06/txt/msg00210.txt.bz2 > 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 Are you linking using gnatlink? Ciao, Duncan.