comp.lang.ada
 help / color / mirror / Atom feed
* Windows: cygwin vs. GNAT mingw
@ 2002-01-02  4:14 Terry Westley
  2002-01-02  5:28 ` Gerhard Häring
  0 siblings, 1 reply; 7+ messages in thread
From: Terry Westley @ 2002-01-02  4:14 UTC (permalink / 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






^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-01-04 18:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-02  4:14 Windows: cygwin vs. GNAT mingw Terry Westley
2002-01-02  5:28 ` 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

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