Thanks Kevin so much.
I installed the Intel Fortran Compiler that is the newly version 11.0.054. Before installing the Intel Fortran Compiler, I already installed the Xcode 3.0.
I did not find a "Default Fortran rule" under the Rules tab for the Target. I do have a "Fortran source files" under "Fortran source rule" in the the Rules tab.
Can I use Intel Fortran version 11 with Xcode 3.0? Should I reinstall the Xcode and then reinstall "Intel Fortran version 11" again? How to uninstall it?
Currently, I compile the multi-programs under terminal. My strategy was to "ifort -c *.F90" and the "ifort -o runclass *.o"
The error message was:
Undefined symbols:
"_allometry_", referenced from:
_vegdyn_ in VegDyn.o
_carbon_ in carbon.o
_carbon_ in carbon.o
ld: symbol(s) not found
===
I try to compile and run it under a Makefile, however some error came out. Here is the error message.
make: *** No rule to make target `Allometry.o', needed by `runclass'. Stop.
Here is the Makefile.
.SUFFIXES : .F90 .o
OBJ=Allometry.o aprep.o canadd.o canalb.o canvap.o carbon.o cgrow.o \
chkwat.o cianda.o classa.o classb.o classd.o classg.o classi.o classs.o \
classt.o classw.o commondat.o cwcalc.o diasurf.o drcoef.o flxsurfz.o \
gatprep.o gralb.o grdran.o grinfl.o icebal.o photosyn.o precision.o \
qsat.o sldiag.o sninfl.o snoadd.o snoalba.o snoalbw.o snovap.o \
stomata.o stomata_col.o subcan.o tfreez.o tmcalc.o tmelt.o tnpost.o \
tnprep.o tprep.o trim_name.o tsolvc.o tsolve.o tspost.o tsprep.o \
twcalc.o VegDyn.o vjtmp.o watrof.o wend.o wfill.o wflow.o wprep.o xit.o
FC = ifort
default: runclass
all: runclass
.F90.o:
$(FC) -c *.F90
runclass: $(OBJ)
$(FC) -o $@ $(OBJ) runclass.F90
clean:
rm *.o