delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/22/09:25:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Dave Korn" <dk AT artimi DOT com>
To: <frederic DOT ormancey AT atosorigin DOT com>, "'Cygwin List'" <cygwin AT cygwin DOT com>
Subject: RE: Lot of undefined symbols at link time, even with -l option on good libraries
Date: Wed, 22 Sep 2004 14:22:02 +0100
MIME-Version: 1.0
In-Reply-To: <4151707C.1050401@atosorigin.com>
Message-ID: <NUTMEGFc0Iw9oqIyxVZ0000000a@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 22 Sep 2004 13:24:46.0330 (UTC) FILETIME=[874EFDA0:01C4A0A7]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i8MDOvbJ029056

> -----Original Message-----
> From: cygwin-owner On Behalf Of Frédéric ORMANCEY
> Sent: 22 September 2004 13:31

> problem seems coming from trailing @nn in library symbols.
> cygwin linker don't know how to translate a reference like 
> _FormatMessageA to _FormatMessageA AT 28
> the calling convention ( C, Stdcall, C++, ... ) has effect only on 
> underscore preceeding symbol name, not on @nn notation.
> 
> It seems there is no solutions to this problem, I will 
> abandon cygwin to 
> build my Ada application under windows :-(

  You didn't read that letter that you were replying to very well:

> >default for Windows).  If you cannot get Ada to ask for the 
> proper symbol, 
> >you could try using the '--enable-stdcall-fixup' option (for 
> 'ld') to 
> >attempt to massage away the problem.  

  It doesn't seem from your reply that you have actually tried this.  Note
that to pass the option through to the linker from the compiler you would
need to add "-Wl," before it, but if you have a separate link stage in your
makefile that invokes the linker directly that would not be necessary.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019