From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Linking with GNAT on Windows
Date: Tue, 24 Nov 2009 08:26:00 -0800 (PST)
Date: 2009-11-24T08:26:00-08:00 [thread overview]
Message-ID: <0ac0e003-176f-48d1-b72f-56f81dae922e@1g2000vbm.googlegroups.com> (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
next reply other threads:[~2009-11-24 16:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-24 16:26 Maciej Sobczak [this message]
2009-11-24 17:34 ` Linking with GNAT on Windows 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox