Dear all,
Please help, I've been working really hard on a uni project and have finished the project and my C program works fine written, compiled and run on the Mac iBook using Darwin and the gcc compiler that comes with it.
I compile it always with the -ansi flag too.
I tried compiling these files on a linux machine and I firstly got a newline character missing warning on each of the 3 files, but they compiled and produced an executable.
Running that causes a segmentation fault though!
Why? surely source code is source code?I'm using unix style linefeeds and told my editor to save the source file as C source.
Has anyone got any ideas? I'd be soooo grateful!
Thanks every1,
Oxy
we are all of us living in the gutter.
But some of us are looking at the stars.
Please help, I've been working really hard on a uni project and have finished the project and my C program works fine written, compiled and run on the Mac iBook using Darwin and the gcc compiler that comes with it.
I compile it always with the -ansi flag too.
I tried compiling these files on a linux machine and I firstly got a newline character missing warning on each of the 3 files, but they compiled and produced an executable.
Running that causes a segmentation fault though!
Why? surely source code is source code?I'm using unix style linefeeds and told my editor to save the source file as C source.
Has anyone got any ideas? I'd be soooo grateful!
Thanks every1,
Oxy
we are all of us living in the gutter.
But some of us are looking at the stars.