From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: pragma import (C, , ); -- import a constant value from C library
Date: Sat, 27 Oct 2012 00:15:06 -0700 (PDT)
Date: 2012-10-27T00:15:06-07:00 [thread overview]
Message-ID: <1c65196f-68e4-4b50-8ad0-e9555d3f1b50@googlegroups.com> (raw)
In-Reply-To: <lyhapgrfz5.fsf@pushface.org>
W dniu sobota, 27 października 2012 01:06:14 UTC+2 użytkownik Simon Wright napisał:
> const double m_euler_for_gnat = M_EULER;
You might want to declare this variable with external linkage (the logic is: if you want to import something from Ada, then you have to export it from C), so:
extern "C" const double m_euler_for_gnat = M_EULER;
--
Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com
next prev parent reply other threads:[~2012-10-27 7:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-26 22:45 pragma import (C, , ); -- import a constant value from C library Enzo Guerra
2012-10-26 23:06 ` Simon Wright
2012-10-27 7:15 ` Maciej Sobczak [this message]
2012-11-05 3:41 ` David Thompson
2012-10-27 7:40 ` Dmitry A. Kazakov
2012-10-27 8:15 ` Simon Wright
2012-10-27 8:19 ` Simon Wright
2012-10-27 8:47 ` 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