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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Using Gnat.Sockets in a Windows DLL Date: Wed, 09 Dec 2015 19:11:33 +0000 Organization: A noiseless patient Spider Message-ID: References: <220ee60f-3290-43d7-a097-cf90380d8bae@googlegroups.com> <10b1b56a-1dc6-4bc0-aea7-80b29882dccb@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="cbdf8bda82781ae5955dc07fd5b0948d"; logging-data="21308"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19djcmMOuMLaJziPIzAzzVxlJTkIJivczg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:3apanwRzscdeTuWTHbGpu6fbQ40= sha1:RPrTVyizkFDDiOiGMkVWnh97Ar8= Xref: news.eternal-september.org comp.lang.ada:28743 Date: 2015-12-09T19:11:33+00:00 List-Id: ahlan@marriott.org writes: > We didn't forget, we want to use a static build so that our DLLs are > self contained so that, with the exception of Window System DLLs, we > don't have to distribute lots of DLLs. Eg Gnat runtime. > > Is there a way that we can make encapsulated DLLs that use Gnat.sockets? > It should be possible because, at the end of the day, Gnat Sockets is > using the same Windows API that Win32 uses. Looking at the AdaCore documentation, it's far from clear what the use case for 'encapsulated' is. You said above that you were having trouble with a shared library 'monitor', I don't understand why you don't build the whole project with static libraries? (BTW, could you look at how you're posting? I see 64 lines quoting your original post - not even the one you're replying to - before I get to the new material)