comp.lang.ada
 help / color / mirror / Atom feed
* Linking with GNAT on Windows
@ 2009-11-24 16:26 Maciej Sobczak
  2009-11-24 17:34 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 8+ messages in thread
From: Maciej Sobczak @ 2009-11-24 16:26 UTC (permalink / raw)


Hi,

Imagine a C library compiled with Visual Studio. This library is used
by an Ada program by means of pragma Import.

When the C library is compiled in the Debug mode, GNAT can link the
whole program. If the same C library is compiled in the Release mode,
the GNAT linker says "undefined reference" with regard to the C
function that is imported by Ada.

I am pretty sure that people who are regularly targetting the Windows
platform have seen that already and could possibly help with a hint
(compiler/linker option on the Visual Studio side?) on how to proceed.
All suggestions are welcome.

This is GNAT 2009 and Visual Studio 2008.

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com

Database Access Library for Ada: www.inspirel.com/soci-ada



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

end of thread, other threads:[~2009-11-25 13:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-24 16:26 Linking with GNAT on Windows Maciej Sobczak
2009-11-24 17:34 ` Dmitry A. Kazakov
2009-11-24 18:03   ` Pascal Obry
2009-11-25  1:36     ` Kevin K
2009-11-25  8:43   ` Maciej Sobczak
2009-11-25  9:46     ` Dmitry A. Kazakov
2009-11-25 12:47       ` Maciej Sobczak
2009-11-25 13:44         ` Dmitry A. Kazakov

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