Re: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-23 Thread Cliff Hones
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 `_FormatMessage

Re: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-23 Thread Frédéric ORMANCEY
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 st

RE: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-23 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Cliff Hones > Sent: 22 September 2004 23:38 > That was me - but it seems Dave Korn's post broke the thread. Nah. My post had this header: In-Reply-To: <[EMAIL PROTECTED]> and as you can see perfectly clearly at http://www.cygw

Re: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-22 Thread Cliff Hones
Larry Hall wrote: > At 01:14 PM 9/22/2004, you wrote: > >>>-Original Message- >>>From: Frédéric ORMANCEY >>>Sent: 22 September 2004 18:07 >> >>>I did it, but it don't work ! >> >> Ah, ok, that was not clear from your last message! >> >> >>>The --enable-stdcall-fixup option suppress one war

RE: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-22 Thread Larry Hall
At 01:14 PM 9/22/2004, you wrote: >> -Original Message- >> From: Frédéric ORMANCEY >> Sent: 22 September 2004 18:07 > >> I did it, but it don't work ! > > Ah, ok, that was not clear from your last message! > >> The --enable-stdcall-fixup option suppress one warning on top >> of linker ou

RE: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-22 Thread Dave Korn
> -Original Message- > From: Frédéric ORMANCEY > Sent: 22 September 2004 18:07 > I did it, but it don't work ! Ah, ok, that was not clear from your last message! > The --enable-stdcall-fixup option suppress one warning on top > of linker output trace : > AVERTISSEMENT: résolution

[Fwd: Re: Lot of undefined symbols at link time, even with -l option on good libraries]

2004-09-22 Thread Frédéric ORMANCEY
I did it, but it don't work ! The --enable-stdcall-fixup option suppress one warning on top of linker output trace : AVERTISSEMENT: résolution de _GetModuleHandleA par un lien vers [EMAIL PROTECTED] and unfortunatly leave ALL other errors with no effect on it. Dave Korn a écrit : -Origina

RE: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-22 Thread Dave Korn
> -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 [EMAIL PROTECTED] > the calling conventio

Re: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-22 Thread Frédéric ORMANCEY
problem seems coming from trailing @nn in library symbols. cygwin linker don't know how to translate a reference like _FormatMessageA to [EMAIL PROTECTED] the calling convention ( C, Stdcall, C++, ... ) has effect only on underscore preceeding symbol name, not on @nn notation. It seems there is

Re: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-21 Thread Cliff Hones
Larry Hall wrote: > At 12:15 PM 9/21/2004, you wrote: > >>I think you're right, it seems to be a problem with trailing underscore in function >>naming. >>For example : >> >>in /usr/lib/w32api/libkernel32.a we found : >> >> T [EMAIL PROTECTED] >> U __head_libkernel32_a

Re: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-21 Thread Larry Hall
At 12:15 PM 9/21/2004, you wrote: >I think you're right, it seems to be a problem with trailing underscore in function >naming. >For example : > >in /usr/lib/w32api/libkernel32.a we found : > > T [EMAIL PROTECTED] >U __head_libkernel32_a > I [EMAIL PROTECT

Re: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-21 Thread Frédéric ORMANCEY
I think you're right, it seems to be a problem with trailing underscore in function naming. For example : in /usr/lib/w32api/libkernel32.a we found : T [EMAIL PROTECTED] U __head_libkernel32_a I [EMAIL PROTECTED] which is required by win32-winbase.o, re

Re: Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-21 Thread Larry Hall
At 05:38 AM 9/21/2004, you wrote: > Using latest release of CygWin ( 1.5.11-1 ) I install the devel kit, > >including gcc and gnat compilers. Then I build from src GCC and GNAT release 3.4.1 ( >which include necessary patchs for my application ). >All my Ada application compile well with gnatmake

Lot of undefined symbols at link time, even with -l option on good libraries

2004-09-21 Thread Frédéric ORMANCEY
Using latest release of CygWin ( 1.5.11-1 ) I install the devel kit, including gcc and gnat compilers. Then I build from src GCC and GNAT release 3.4.1 ( which include necessary patchs for my application ). All my Ada application compile well with gnatmake command, but link failed with a lot of