Hi,
I'm a newbie in programming under Cygwin, and I have a very basic problem
with gcc:
Any help is appreciated.
This code compiles and runs without any problems under Dev++
This is the output when I compile and run:
$ gcc -Wall prog3.c -o prog3
$ ./prog3.exe
Hello World
Segmentation fault (core
Hi David,
please see my comments below.
Cheers,
Klaus
>
> Klaus,
>
> Since it's not a bug in your code (it works for me too, at least as
> written), I suspect a problem with your gcc installation, or you're
> picking up the wrong gcc.
>
> What do:
>
> type -a gcc
gcc is /usr/bin/gcc
gc
Hi Max,
I tried gdb and followed the code from asm instance to asm instance.
This is what I get in the code:
Unable to Read Instructions at 0x61007730 in the _libkernel32_a_iname
function. It seems to be somewhere inside <__main> after <__alloc> is finished.
Actually the first command in <__main>
David,
I installed gcc-2 now and tried with gcc-2.
It compiles and links without problem as well.
When executing the program it doesn't go inside the function.
The program just outputs 'Hello World' twice and ends.
But with gcc-2 I don't have the core dump.
uname -a says:
CYGWIN_NT-5.0 ZWG15-0274
Max, David,
thanks very much for your help.
I didn't know that my cygwin version is so old. I had just clean installed
it about one week ago from programming.ccp14.ac.uk. (obviously this mirror is
meanwhile gone).
I have now:
CYGWIN_NT-5.0 ZWG15-0274 1.3.19(0.71/3/2) 2003-01-23 21:31 i686 unknown
5 matches
Mail list logo