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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,4de02d484d08f163 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-02 15:30:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!chnws02.mediaone.net!chnws06.ne.mediaone.net!24.128.8.70!typhoon.ne.mediaone.net.POSTED!not-for-mail From: "Jeff Creem" Newsgroups: comp.lang.ada References: <6GIY7.257$Ov2.206578@news.uswest.net> Subject: Re: Windows: cygwin vs. GNAT mingw X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: Date: Wed, 02 Jan 2002 23:28:47 GMT NNTP-Posting-Host: 66.31.5.146 X-Complaints-To: abuse@mediaone.net X-Trace: typhoon.ne.mediaone.net 1010014127 66.31.5.146 (Wed, 02 Jan 2002 18:28:47 EST) NNTP-Posting-Date: Wed, 02 Jan 2002 18:28:47 EST Organization: ATT Broadband Xref: archiver1.google.com comp.lang.ada:18465 Date: 2002-01-02T23:28:47+00:00 List-Id: "Terry Westley" wrote in message news:soMY7.338$Ov2.322017@news.uswest.net... > > "Gerhard H�ring" wrote in message > news:slrna36n6i.1jl.gerhard@lilith.hqd-internal... > > Terry Westley schrieb im Artikel <6GIY7.257$Ov2.206578@news.uswest.net>: > > >> [Terry] > >> I can't find it (winserve.dll) either on my system or anywhere on the net. > > > [Gerhard] > > Then I don't get why you try to link against it. Do you have the import > > library but not the DLL? If you don't have the DLL, you won't be able to > > run the executable anyway!? > > > > If so, in which form do you have the import library: .def, .lib or .a? I > > could tell you then how to get this to work with GNAT. > > [Terry] > I am porting a Linux Ada program which has references to several unresolved > symbols, > such as getuid and getgid. I used nm command to find these symbols in > winserve.a in > the mingw libraries of GNAT 3.13p. So, I naively built and ran the executable, > only to > find that winserve.dll is missing from the GNAT mingw distribution and I can't > find it > anywhere else either. > > I think my next step is to get the latest distribution of mingw and see if the > supplied > libraries will satisfy my unresolved symbols and if I can use GNAT to link them > into > my executable. > > -- > Terry Westley > westley@yahoo.com > > > Good luck but I suspect that will probably not work. The whole purpose of mingw is to use only native win32 libraries.. Those are pretty unixy sounding calls. How many symbols are we talking about here? If it is a small number then perhaps you get to the first stage with dummy functions/procedures with appropriate pragma exports in some with'd package.