Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The grib API is installed on all systems at ECMWF with both its components: the library and the tools.
The latest version of the tools is always available in the system PATH so that users can begin using the tools immediately by typing directly the tool name (see tools reference).
The latest version of the library is also installed on any platform and it is available for linking through the following two environment variables: $GRIB_API_INCLUDE $GRIB_API_LIB.
Here is a short summary on how to compile and link on ECMWF systems:

...

$GRIB_API_

...

LIB

...

.

...

...

> gcc -m32 -o foo foo.c $GRIB_API_INCLUDE $GRIB_API_LIB 

...

> gcc -o foo foo.c $GRIB_API_INCLUDE $GRIB_API_LIB 

...

> use pgf90
> pgf90 -o foo foo.f90 $GRIB_API_INCLUDE $GRIB_API_LIB