Win32Ada Linker Problem

From: Andrew Carroll (andrew_at_carroll-tech.net)
Date: 03/28/04


Date: Sun, 28 Mar 2004 00:36:29 -0700
To: <comp.lang.ada@ada-france.org>

I am trying to use A# and RAPID, which requires AdaGIDE, Win32Ada, TASH and
last but not least, GNAT.

[ For your info, TASH site is still down, <sigh> ]

I read somewhere that GNAT 3.11 came with Win32Ada. Does that mean GNAT
3.15p comes with it?
The reason I ask is because I'm having some linker problems with Win32Ada.
The specific message is:

--------------------------------------
ld: unrecognized option
'C:\PROGRA~1\ADA\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib\libgnat.a'
ld: use the --help option for usage information
gnatlink: cannot call C:\PROGRA~1\ADA\BIN\gcc.exe
gnatmake: *** link failed.
--------------------------------------

So I tried to use verbosity to find out more and it told me, basically, the
same thing. Heh, nice feature.
I checked my autoexec.bat file for incorrect paths and they are "squared
away".
So I'm pretty sure finding gcc isn't the problem, for me at least.
C:\Progra~1\ada\bin\gcc.exe is the correct
path to that executable. It is obvious that I can use Gnatmake, otherwise I
would never have gotten to
gnatlink. Gnatbind finished with no trouble as well.

I Googled the error messages and none of the returned links were that
helpful.

Is there a configuration file for gnatlink? For ld? Do I need a different
ld? Do I need a different gnatlink?

Andrew



Relevant Pages

  • Newbie Questions
    ... I have been playing with GNAT and Ada for a little bit (GNAT 4.2.1 (Ubuntu 4.2.1-5ubuntu6) on Ubuntu 7.10). ... My problem is that it always runs just the GCC without calling gnatbind or gnatlink as it does if I just call gnatlink. ...
    (comp.lang.ada)
  • Re: Win32Ada Linker Problem
    ... GNAT. ...
    (comp.lang.ada)
  • Re: Enumeration type - GNAT 3.15p bug?
    ... If I compile your code with GNAT 3.15p, I obtain the expected behaviour: ... gnatbind -x jenumxa.ali ... gnatlink jenumxa.ali ...
    (comp.lang.ada)