Greetings,
I am obtaining the following error when attempting to build my code. (Note this is all created by a separate executable)
mpif90 -D"FFTW3=1" -D"PARALLEL=0" -g -WB -traceback -debug all -warn all -mcmodel=medium -o ifc_ibm.exe "" -lfftw3 "" -lm "" -L/home/ejmurphy/FFTW_IFC/lib ""
ifort: warning #10315: specifying -lm before files may supercede the Intel(R) math library and affect performance
ifort: warning #10315: specifying -lm before files may supercede the Intel(R) math library and affect performance
/opt/intel/composer_xe_2013.5.192/compiler/lib/intel64/for_main.o: In function `main':
/export/users/nbtester/efi2linux_nightly/branch-13_0gt/20130608_000000/libdev/frtl/src/libfor/for_main.c:(.text+0x38): undefined reference to `MAIN__'
make: *** [ifc_ibm.exe] Error 1
I have read through previous threads on errors like this, so I'll clarify some stuff upfront. The entire program, main program included, is written in fortran 90 and I am running in the current LTS of ubuntu. I cannot seem to get past the part of my makefile that builds the dependencies for the executable. I am a newb but I think I've gotten myself up to speed enough to understand whats going on in the makefile (though all compiler flags I don't necessarily know without a google search.)
Any help or hints would be greatly appreciated.
p.s. I added .f90 so I could attach.