From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.159.18 with SMTP id w18mr4829010ywg.57.1461741905728; Wed, 27 Apr 2016 00:25:05 -0700 (PDT) X-Received: by 10.182.225.5 with SMTP id rg5mr82209obc.4.1461741905620; Wed, 27 Apr 2016 00:25:05 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!7no6324637qgj.0!news-out.google.com!uv8ni505igb.0!nntp.google.com!sq19no1248066igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 27 Apr 2016 00:25:05 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:120b:7f3:dcd0:f806:212b:2dfc:b2eb; posting-account=DQbqYQoAAACn8hHn2LmG2aF7Mhbxl_Lf NNTP-Posting-Host: 2a02:120b:7f3:dcd0:f806:212b:2dfc:b2eb References: <58a4942a-452a-4f32-b39b-f8f1fdbfe9fb@googlegroups.com> <68353b5d-94dc-4604-bdb1-00b48396ec1b@googlegroups.com> <33e880a1-df5f-450c-89e0-9b1d1a95e12f@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <233ad3c6-09dc-479b-b4f6-7714334358dd@googlegroups.com> Subject: Re: Building an encapsulated library that uses GNAT sockets under Windows From: ahlan@marriott.org Injection-Date: Wed, 27 Apr 2016 07:25:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:30298 Date: 2016-04-27T00:25:05-07:00 List-Id: On Wednesday, April 27, 2016 at 8:53:17 AM UTC+2, Simon Wright wrote: > Simon Wright 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