This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> When I am trying to install netcdf-3.6.2 on my system using ifort and > gfortran, I am getting the errors as attached with the configure files. But > I could install the netcdf-3.6.2 over my system using gfortran and ifort. > For ifort I used the following options. > FC=ifort > FFLAGS='-mp -recursive' > CPPFLAGS=-DpgiFortran > source /shared/IntelFort/bin/ifortvars.sh > > For gfortran I used the following options. > FC=gfortran > FFLAGS='-frepack -arrays' > CPPFLAGS=-Dgfortran > > Whats my problem is when I run my ROMS-3.0(3D-ocean circulation code)which > uses netcdf, it is giving the same error which was there in config.log files > i.e., > /shared/gfortran/gcc-4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/libgfortranbegin.a(fmain.o)(.text+0xa): > In function `main': > /projects/tob/gcc-4_2-branch/libgfortran/fmain.c:18: undefined reference to > `MAIN__' > collect2: ld returned 1 exit status > gmake: *** [/shared/ROMS-3.0/trunk/Projects/Upwelling/oceanS] Error 1 > > Can u please tell me how can I rectify that error. > > Thanks in advance. > > With best regards, > G.NageswaraRao. > > Could you please send the complete output for: make distclean all check Thanks! Ed Ticket Details =================== Ticket ID: AVY-866390 Department: Support netCDF Priority: Normal Status: Open