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.
> Full Name: Jahanzeb > Email Address: address@hidden > Organization: ITC > Package Version: netcdf-4.1.1 > Operating System: Cygwin > Hardware: > Description of problem: > > Dear Unidata, > > I am compiling the code of Noah LSM as: > > gfortran -I/home/libs/include -o driver.exe module_sf_noahlsm.o module_model_ > constants.o module_sf_urban.o kwm_date_utilities.o module_netcdf_io.o > module_io > .o module_ascii_io.o module_sfcdif_wrf.o module_Noahlsm_utility.o > simple_driver > .o -L/home/libs/lib -lnetcdf -lhdf5_hl -lhdf5 -lz -lm > > This command is giving error as: > > /usr/lib/gcc/i686-pc-cygwin/4.3.4/libgfortranbegin.a(fmain.o): In function > `main > ': > /gnu/gcc/releases/respins/4.3.4-3a/gcc4-4.3.4-3/src/gcc-4.3.4/libgfortran/fmain. > c:21: undefined reference to `_MAIN__' > collect2: ld returned 1 exit status > > I will be thankful if you please let me know what I am doing wrong. > > Kind regards > > Howdy Jahanzeb! This is not a netCDF error. The fortran compiler is complaining about something internal that it should not be complaining about. Are you sure it is installed correctly? Ask your sysadmin or reinstall it. Good luck, Ed Ticket Details =================== Ticket ID: QNE-438470 Department: Support netCDF Priority: Normal Status: Closed