Re: Help for ncargex

From: Mary Haley (haley AT XXXXXX)
Date: Mon Feb 02 2004 - 08:21:43 MST

  • Next message: Daniel Sheltraw: "contour lines on ellipsoid"

    >
    > when running test
    > ncargex cpex08
    > i receive
    >
    > NCAR Graphics Fortran Example <cpex08>
    >
    > Copying cpex08.f
    >
    > Copying cpexcc.f
    >
    > Compiling and linking...
    >
    > f90 -O -o cpex08 cpexcc.f cpex08.f -L/disk02/LAPS/ncarg/lib =
    > -L/usr/local/lib -L/usr/openwin/lib -L/usr/dt/lib -lncarg -lncarg_gks =
    > -lncarg_c -lX11 -lXext
    >
    > cpexcc.f:
    >
    > cpex08.f:
    >
    > Linking:
    >
    > Undefined first referenced
    >
    > symbol in file
    >
    > __e_wsle /disk02/LAPS/ncarg/lib/libncarg.a(pcffgd.o)
    >
    > __s_stop /disk02/LAPS/ncarg/lib/libncarg.a(cpgiws.o)
    > .
    > .
    > .
    >
    > The compile and link failed.
    >
    >
    > What is wrong ..
    >

    You probably need to add an additional system library called
    "-lF77". Try this:

     f90 -O -o cpex08 cpexcc.f cpex08.f -L/disk02/LAPS/ncarg/lib
     -L/usr/local/lib -L/usr/openwin/lib -L/usr/dt/lib -lncarg -lncarg_gks
     -lncarg_c -lX11 -lXext -lF77

    If this works, then you might want to consider adding "-lF77"
    after "-lXext" in whatever script or Makefile you are using.

    --Mary
    _______________________________________________
    ncarg-talk mailing list
    ncarg-talk AT unknown
    http://mailman.ucar.edu/mailman/listinfo/ncarg-talk



    This archive was generated by hypermail 2b29 : Mon Feb 02 2004 - 08:38:54 MST