Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <4152DD43.2020903@hones.org.uk> Date: Thu, 23 Sep 2004 15:27:15 +0100 From: Cliff Hones User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) MIME-Version: 1.0 To: frederic DOT ormancey AT atosorigin DOT com CC: Cygwin List Subject: Re: Lot of undefined symbols at link time, even with -l option on good libraries References: <4151B11A DOT 2020209 AT atosorigin DOT com> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040922133349 DOT 03eb1438 AT pop DOT prospeed DOT net> <4151FEB1 DOT 2030004 AT hones DOT org DOT uk> <4152CCBA DOT 80809 AT atosorigin DOT com> In-Reply-To: <4152CCBA.80809@atosorigin.com> X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i8NERjpW004372 Frédéric ORMANCEY wrote: > Thanks for this sample code => we are not far of the solution ! > > Same sample compile on my platform gives the following : > V:>gnatmake imp > gnatbind -x imp.ali > gnatlink imp.ali > ./imp.o(.text+0x20):imp.adb: undefined reference to `_FormatMessageA' > collect2: ld returned 1 exit status > gnatlink: cannot call /usr/bin/gcc.exe > gnatmake: *** link failed. > > And of course nm command as a different result also : > 00000000 b .bss > 00000000 d .data > 00000000 t .text > U _FormatMessageA > 00000000 T __ada_imp > > Problem is in compile time, not in build time, my compiler doesn't > generate apropriate symbols in objects files ! > > I'am using cygwin 1.5.11-1 ( latest release ) with GNAT / GCC 3.4.1 ( > gcc-ada-3.4.1-20040711-1.tar.gz package ). > I can't use older version of GNAT because of bugs in gnat.socket package > ( Gnat form of select() function limited to 32 simultaneous sockets for > example ). I was using the current Cygwin version of gnat - 3.3.3[-3] (Cygwin special). I think you are using the MinGW version, and problems with that would be better directed to the MinGW mailing lists or support forum. -- Cliff -- 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/