I am having problem trying to compile WRF2GRADS on MAC.
Here is my Makefile:
LIBNETCDF = -L/opt/local/lib -lnetcdf -lm
INCLUDE = -I/opt/local/include -I./
FC = gfortran
FCFLAGS = -g -C -free
CPP = /opt/local/bin/cpp
CPPFLAGS = -I. -C -P -DRECL4 -xassembler-with-cpp
and the error message:
gfortran -g -C -free -o wrf_to_grads wrf_to_grads.o \
-L/opt/local/lib -lnetcdf -lm
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [wrf_to_grads] Error 1
Does anyone have any clue of what that means or how to solve it?
Thanks a lot!