Fortran bus error on mac
Posted
by SteveJ
on Stack Overflow
See other posts from Stack Overflow
or by SteveJ
Published on 2009-12-28T08:30:10Z
Indexed on
2010/06/14
6:02 UTC
Read the original article
Hit count: 384
The following Fortran code is giving me a bus error on my Mac but no errors when I run it on my Linux machine:
PROGRAM TINY
WRITE(UNIT=*, FMT=*) 'Hello, world!'
END
My understanding is that a bus error occurs when the program attempts to access impossible memory but I do not understand where such an attempt has been made in this program. My MacBook has GCC 4.4.0 and my Linux machine has GCC 4.3.2. Any ideas as to why this error occurs?
© Stack Overflow or respective owner