From: ahlan@marriott.org
Subject: Re: Building an encapsulated library that uses GNAT sockets under Windows
Date: Wed, 27 Apr 2016 00:25:05 -0700 (PDT)
Date: 2016-04-27T00:25:05-07:00 [thread overview]
Message-ID: <233ad3c6-09dc-479b-b4f6-7714334358dd@googlegroups.com> (raw)
In-Reply-To: <ly8tzzmtk4.fsf@pushface.org>
On Wednesday, April 27, 2016 at 8:53:17 AM UTC+2, Simon Wright wrote:
> Simon Wright <simon@pushface.org> writes:
>
> > case Library_Type is
> > when "relocatable" =>
> > for Library_Src_Dir use "./include";
> > for Library_Interface use Source_Units;
> > when "static" =>
> > for Library_Src_Dir use "./include";
> > for Interfaces use Sources;
> > end case;
>
> Actually, the Library_Src_Dir won't normally have the same content in
> the two cases, so they should be different (./include-relocatable,
> ./include-static for example).
>
> Or
>
> for Library_Src_Dir use "./include-" & Library_Type;
> case Library_Type is
> when "relocatable" =>
> for Library_Interface use Source_Units;
> when "static" =>
> for Interfaces use Sources;
> end case;
I have one last question concerning the build of gprlib.
When I use gprbuild to build applications that do not require a console I add "-mwindows" to the default_switches in package Linker within the gpr file.
However when I do this for Gprlib and then replace the AdaCore Gprlib with my version subsequent use of Gprbuild results in three console windows being momentarily displayed.
However if I omit the "-mwindows" then all is well and these consoles do not appear.
What confuses my small brain is that this is the opposite of what I expected.
Normally if I don't specify -mwindows I get a console application.
Does anyone have an explanation of why gprlib appears special in this regard?
What am I misunderstanding?
Confused,
Ahlan
next prev parent reply other threads:[~2016-04-27 7:25 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 12:59 Building an encapsulated library that uses GNAT sockets under Windows Dmitry A. Kazakov
2016-04-22 7:58 ` ahlan.marriott
2016-04-22 8:23 ` Dmitry A. Kazakov
2016-04-23 9:20 ` Ahlan
2016-04-23 9:48 ` Dmitry A. Kazakov
2016-04-23 14:45 ` ahlan.marriott
2016-04-23 19:56 ` Dmitry A. Kazakov
2016-04-23 21:16 ` Simon Wright
2016-04-24 8:13 ` ahlan
2016-04-24 8:31 ` Simon Wright
2016-04-26 19:43 ` ahlan.marriott
2016-04-26 20:24 ` Simon Wright
2016-04-26 22:32 ` Jeffrey R. Carter
2016-04-27 22:16 ` Randy Brukardt
2016-04-27 23:43 ` Jeffrey R. Carter
2016-04-28 5:18 ` J-P. Rosen
2016-04-28 5:59 ` Jeffrey R. Carter
2016-05-09 22:32 ` David Thompson
2016-04-28 20:23 ` Randy Brukardt
2016-04-28 21:47 ` Jeffrey R. Carter
2016-04-28 5:13 ` J-P. Rosen
2016-04-26 20:20 ` Dmitry A. Kazakov
2016-04-26 21:23 ` Simon Wright
2016-04-27 6:53 ` Simon Wright
2016-04-27 7:25 ` ahlan [this message]
2016-04-27 8:27 ` Dmitry A. Kazakov
2016-04-27 9:59 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox