[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #AVY-866390]: Netcdf-3.6.2 error



Hi,

Sorry, the instructions were wrong.  After "make distclean", you must run
the configure script before "make all check".

The log outputs you sent from running configure for both ifort and gfortran
look fine.  Errors are expected when configure runs, since it determines the
configuration needed for each platform by running small test programs and
some of these are expected to get errors.

The error you are seeing

/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

It looks like the linking step doesn't have all the compiled pieces it needs.
If you are using the netCDF module (.mod file), you need to tell the linker
where to find it (typically the same directory where the netcdf.h and
netcdf.inc
files have been installed).

--Russ



Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: AVY-866390
Department: Support netCDF
Priority: Normal
Status: Closed