- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have just converted to Linux from the Windows platform, running Ubuntu 8.10 64 bit version. I use Intel Fortran ver 11, also the 64 bit version.
I get the following message when compiling:
ifort -O2 -i8 -r8 -assume byterecl insap_globals.for
/opt/intel/Compiler/11.0/074/lib/intel64/for_main.o: In function `main':
/export/users/nbtester/efi2linux_nightly/branch-11_0/20081106_010000/libdev/frtl/src/libfor/for_main.c:(.text+0x38): undefined reference to `MAIN__'
Any reason why this message pops up?
Thanks in advance.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would guess that insap_globals.for is not a complete program - perhaps it is a module or a BLOCK DATA subprogram. The error is saying that there is no main program in the compilation.
If you are compiling several sources separately and then linking them, add the switch -c to the compile lines (but not the link line.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve, got it.

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