06-17-04 10:55 PM
Segmentation fault is a runtime error, not a compile error. It's usually
caused when you try to access memory (e.g. 0x0) that you're not supposed to.
In your case, I'd guess it's because you haven't allocated memory correctly,
or you have rogue pointers, or the pointers being passed by your C routines
to your Fortran routines are somehow being mashed.
HTH, John
"Neil Forsythe" <n.forsythe@qub.ac.uk> wrote in message
news:deae8c94.0406170215.6793c66d@posting.google.com...
> Dear all
>
> Has anyone hade any experence with compiling code that is mixed c and
> fortran ( c routines calling fortran routines) using the intel IA-32
> compiler and gcc?
>
> I have obtained a program which I can compile and run without any
> problems using f77 as the fortran compiler and gcc. However when I
> use the intel compiler, although the progran compiles successfully, it
> shows "segmantation fault" errors when running.
>
> Is there any specific complier options or runtime flags that need to
> be set for the intel compiler to avoid this problem?
>
> Kind Regards
>
> Neil
[ Post a follow-up to this message ]
|