- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everybody,I use ifort for linux;
While compiling some subroutins and programs I receive such a message: in ......... undefined refference to "MAIN" .
Aparently they are compiled.But in running the program I receive following message and running stops:
11 November 2008 , time 14:04 , starting LMTART
PROJECT? LaTiO3
INPINFO? ini+str+scs
RUNMODE? scf+out
LaTiO3.out DELETED !
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
a.out 08287329 Unknown Unknown Unknown
. FFFFE600 Unknown Unknown Unknown
a.out 081F892E Unknown Unknown Unknown
libc.so.6 00562DEC Unknown Unknown Unknown
a.out 0804A1E1 Unknown Unknown Unknown
[madani@localhost lmtart]$
can these 2 be related to eachother?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
While compiling some subroutins and programs I receive such a message: in ......... undefined refference to "MAIN" .
Aparently they are compiled.But in running the program I receive following message and running stops:
forrtl: severe (174): SIGSEGV, segmentation fault occurred
can these 2 be related to eachother?
Yes, in an all Fortran build there must be a main program, the one with PROGRAM (or, up to 30 years ago, no FUNCTION or SUBROUTINE, just blank) at the top. That's where the system library hands over control to your code.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page