comp.lang.ada
 help / color / mirror / Atom feed
* Q: link 3rd party library with GNAT on NT
@ 1998-10-25  0:00 Zhiqing Liu
  1998-10-26  0:00 ` Jerry van Dijk
  0 siblings, 1 reply; 2+ messages in thread
From: Zhiqing Liu @ 1998-10-25  0:00 UTC (permalink / raw)


Here is my problem to link a 3rd party library with GNAT
(gnat-3.10p1-nt) on Windows NT4:

C:\ada>gnatlink test.ali c:\vendor\lib\xyz.lib
ld: c:\vendor\lib\xyz.lib(xyz.dll): warning: ignoring duplicate section
`.text'
ld: c:\vendor\lib\xyz.lib(xyz.dll): warning: ignoring duplicate section
`.idata$5'

It did produce an executable, which would complain that
"The procedure entry point cound not be located in the dynamic link
library xyz.dll"

What am I missing here?




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

* Re: Q: link 3rd party library with GNAT on NT
  1998-10-25  0:00 Q: link 3rd party library with GNAT on NT Zhiqing Liu
@ 1998-10-26  0:00 ` Jerry van Dijk
  0 siblings, 0 replies; 2+ messages in thread
From: Jerry van Dijk @ 1998-10-26  0:00 UTC (permalink / raw)


Zhiqing Liu (zliu@cs.iupui.edu) wrote:

: Here is my problem to link a 3rd party library with GNAT
: (gnat-3.10p1-nt) on Windows NT4:

: C:\ada>gnatlink test.ali c:\vendor\lib\xyz.lib
: ld: c:\vendor\lib\xyz.lib(xyz.dll): warning: ignoring duplicate section
: `.text'
: ld: c:\vendor\lib\xyz.lib(xyz.dll): warning: ignoring duplicate section
: `.idata$5'

: It did produce an executable, which would complain that
: "The procedure entry point cound not be located in the dynamic link
: library xyz.dll"

The library you are linking is -at least in the linkers eyes- an
DLL import library. Make sure the DLL is in the path.

For further info, see my homepage.


-- 
-- Jerry van Dijk  | email: jdijk@acm.org
-- Leiden, Holland | member Team-Ada
-- Ada & Win32: http://stad.dsl.nl/~jvandyk




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

end of thread, other threads:[~1998-10-26  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-25  0:00 Q: link 3rd party library with GNAT on NT Zhiqing Liu
1998-10-26  0:00 ` Jerry van Dijk

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