This is the mail archive of the
mailing list for the Cygwin project.
RE: Lot of undefined symbols at link time, even with -l option on good libraries
- From: "Dave Korn" <dk at artimi dot com>
- To: <frederic dot ormancey at atosorigin dot com>, "'Cygwin List'" <cygwin at cygwin dot com>
- Date: Wed, 22 Sep 2004 14:22:02 +0100
- Subject: RE: Lot of undefined symbols at link time, even with -l option on good libraries
> -----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@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.
Can't think of a witty .sigline today....
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html