comp.lang.ada
 help / color / mirror / Atom feed
From: "Terry Westley" <westley@yahoo.com>
Subject: Windows: cygwin vs. GNAT mingw
Date: Wed, 02 Jan 2002 04:14:11 GMT
Date: 2002-01-02T04:14:11+00:00	[thread overview]
Message-ID: <nOvY7.725$gO5.400754@news1.news.adelphia.net> (raw)

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 <stdio.h>

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






             reply	other threads:[~2002-01-02  4:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-02  4:14 Terry Westley [this message]
2002-01-02  5:28 ` Windows: cygwin vs. GNAT mingw Gerhard Häring
2002-01-02 18:57   ` Terry Westley
2002-01-02 19:17     ` Gerhard Häring
2002-01-02 23:11       ` Terry Westley
2002-01-02 23:28         ` Jeff Creem
2002-01-04 18:25           ` Terry Westley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox