comp.lang.ada
 help / color / mirror / Atom feed
* GNAT Linker works sometimes and sometimes not with project files
@ 2004-02-24 17:59 Michael Erdmann
  2004-02-24 21:19 ` Simon Wright
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Erdmann @ 2004-02-24 17:59 UTC (permalink / raw)


I have a strange situation. When i use project files, the gnatmake
generates a command string for gnatlink which failes to resolve external
references into a library. When i execute the same command manually the
command line is building the executable. Any idea what the problem could
be (see below). Second of all what if causing the "completed ...."
message!


gnatmake  -gnatf -I/projects/gnade/gnade/linux-gnu-i686-include -
    -XTARGET=/projec ts/gnade/gnade/linux-gnu-i686-lib 
    -XBINARIES=/projects/gnade/gnade/linux-gnu-i68 6-bin 
    -XINCLUDE=/projects/gnade/gnade/linux-gnu-i686-include 
    -XLIBS="-L/projects /gnade/gnade/linux-gnu-i686-lib  
    -lgnadeesql -lgnadeaux   -L/usr/lib -lodbc" -d -Ptools.gpr
completed 1 out of 5 (20%)...
completed 2 out of 5 (40%)...
completed 3 out of 18 (16%)...
completed 4 out of 18 (22%)...
....
completed 39 out of 42 (92%)...
completed 40 out of 42 (95%)...
completed 41 out of 42 (97%)...
completed 42 out of 42 (100%)...
gnatbind -shared -aO/projects/gnade/gnade/linux-gnu-i686-include -x exp.ali
gnatlink -g -L/projects/gnade/gnade/linux-gnu-i686-lib  
    -lgnadeesql -lgnadeaux  -L/usr/lib -lodbc 
    -o /projects/gnade/gnade/linux-gnu-i686-bin/exp exp.ali

./gnu-db-sqlcli.o(.text+0x2001): In function `gnu__db__sqlcli__sql_error_message ':
/......



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GNAT Linker works sometimes and sometimes not with project files
  2004-02-24 17:59 GNAT Linker works sometimes and sometimes not with project files Michael Erdmann
@ 2004-02-24 21:19 ` Simon Wright
  2004-02-25 16:26   ` Michael Erdmann
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Wright @ 2004-02-24 21:19 UTC (permalink / raw)


Michael Erdmann <Michael.Erdmann@snafu.de> writes:

>         Second of all what if causing the "completed ...."
> message!

That seems to be the -d

(GPS must use this, it produces the same sort of output in the bottom
right hand status bar)

-- 
Simon Wright                               100% Ada, no bugs.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GNAT Linker works sometimes and sometimes not with project files
  2004-02-24 21:19 ` Simon Wright
@ 2004-02-25 16:26   ` Michael Erdmann
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Erdmann @ 2004-02-25 16:26 UTC (permalink / raw)



"Simon Wright" <simon@pushface.org> schrieb im Newsbeitrag
news:x7vvflwdvkn.fsf@smaug.pushface.org...
> Michael Erdmann <Michael.Erdmann@snafu.de> writes:
>
> >         Second of all what if causing the "completed ...."
> > message!
>
> That seems to be the -d

Thanks. I found the problem (but without understanding it at all). After
adding the -u switch at
the end everthing was fine!

Regards
    M.Erdmann
.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-25 16:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-24 17:59 GNAT Linker works sometimes and sometimes not with project files Michael Erdmann
2004-02-24 21:19 ` Simon Wright
2004-02-25 16:26   ` Michael Erdmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox