Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

problem with undefined reference

j-simpson
Beginner
378 Views
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
Please let me know if you have an idea of how I can fix this!!!
Thanks!
0 Kudos
1 Reply
TimP
Honored Contributor III
378 Views
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.
0 Kudos
Reply