我把編譯器器mpif90改成ifort(因為參數不同),我試過-nostartfiles和-nofor_main
但還是一樣錯誤,想問要怎麼解決。
time ifort -o ndown.exe -qopenmp -fpp -auto -O3 -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian -xHost -fp-model fast=2 -no-heap-arrays -no-prec-div -no-prec-sqrt -fno-common -xCORE-AVX2 -ip -xHost -fp-model fast=2 -no-prec-div -no-prec-sqrt -ftz -align all -fno-alias -fno-common -xCORE-AVX2 ndown_em.o …/dyn_em/module_initialize_real.o libwrflib.a /home/ppinn/wrf-hw/build/WRF_ISC21/external/fftpack/fftpack5/libfftpack.a /home/ppinn/wrf-hw/build/WRF_ISC21/external/io_grib1/libio_grib1.a /home/ppinn/wrf-hw/build/WRF_ISC21/external/io_grib_share/libio_grib_share.a /home/ppinn/wrf-hw/build/WRF_ISC21/external/io_int/libwrfio_int.a -L/home/ppinn/wrf-hw/build/WRF_ISC21/external/esmf_time_f90 -lesmf_time /home/ppinn/wrf-hw/build/WRF_ISC21/external/RSL_LITE/librsl_lite.a /home/ppinn/wrf-hw/build/WRF_ISC21/frame/module_internal_header_util.o /home/ppinn/wrf-hw/build/WRF_ISC21/frame/pack_utils.o -L/home/ppinn/wrf-hw/build/WRF_ISC21/external/io_netcdf -lwrfio_nf -L/home/ppinn/wrf-hw/opt/netcdf-c-4.7.3/lib -lnetcdf
ld: /home/ppinn/intel/oneapi/compiler/2023.0.0/linux/bin/intel64/…/…/compiler/lib/intel64_lin/for_main.o: in function main': for_main.c:(.text+0x19): undefined reference to
MAIN__’
Command exited with non-zero status 1