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,FREEMAIL_FROM,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4de02d484d08f163,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-01 20:14:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mail From: "Terry Westley" Newsgroups: comp.lang.ada Subject: Windows: cygwin vs. GNAT mingw X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Wed, 02 Jan 2002 04:14:11 GMT NNTP-Posting-Host: 24.49.119.180 X-Complaints-To: abuse@adelphia.net X-Trace: news1.news.adelphia.net 1009944851 24.49.119.180 (Tue, 01 Jan 2002 23:14:11 EST) NNTP-Posting-Date: Tue, 01 Jan 2002 23:14:11 EST Xref: archiver1.google.com comp.lang.ada:18436 Date: 2002-01-02T04:14:11+00:00 List-Id: Has anyone successfully used Cygwin in a GNAT-compiled program? It appears that you can successfully link with -lcygwin, but program will crash. GDB says: Program received signal SIGSEGV, Segmentation fault. 0x61002ac0 in _size_of_stack_reserve__ () I suspect that this has something to do with GNAT on Windows using mingw and you can't build a program with both cygwin and mingw. Here's the smallest program that I tested on: --------------------------------- #include int main (argc, argv) int argc; char **argv; { printf ("hello cygwin\n"); } --------------------------------- Compile with this command: gcc -g -o testcygwin testcygwin.c -L C:/cygwin/lib -lcygwin If I use the gcc that comes with GNAT, it fails as shown above. If I compile with gcc that comes with cygwin, it works fine. P.S. I'm resorting to cygwin because I can't find winserve.dll that is required when linking with -lwinserve of mingw! -- Terry Westley westley@yahoo.com