- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting the same kind oferror that someone posted earlier and didn't get a response to:
% make
/lib/cpp -fpp -P -Dmpi=0 -Dsgi=0 -Dlinux=1 -Dibm=0 -Dmac_osx=0 ../source/kinds.F > kinds.F
/opt/intel/bin/ifort -CB -O -FR kinds.F
/opt/intel/lib/for_main.o(.text+0x1c): In function `main':
: undefined reference to `MAIN__'
make: *** [kinds.o] Error 1
/lib/cpp -fpp -P -Dmpi=0 -Dsgi=0 -Dlinux=1 -Dibm=0 -Dmac_osx=0 ../source/kinds.F > kinds.F
/opt/intel/bin/ifort -CB -O -FR kinds.F
/opt/intel/lib/for_main.o(.text+0x1c): In function `main':
: undefined reference to `MAIN__'
make: *** [kinds.o] Error 1
Please let me know if you have an idea of how I can fix this!!!
Thanks!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The linker doesn't see a Fortran main program in your file. If you want compile-only, add -c. If you want pre-process-only, use only pre-processing flags. If there should be a main program, check your pre-processed source.

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