Re: ncargex cpex08 problem

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 31 Jan 2008 14:55:06 -0700 (MST)

Sorry Ekin, maybe it was -lgcc. Try this, and if it still doesn't
work, then it sounds like you need to find the location of
libg2c.a/libgcc.a (or libg2c.so/libgcc.so) on your system, and use -L
to help it find these libraries. For example, if you find one or both
of them in /usr/local/lib, then you would use:

   ncargf77 -o cpex08 cpex08.f cpexcc.f -L/usr/local/lib -lg2c
   ncargf77 -o cpex08 cpex08.f cpexcc.f -L/usr/local/lib -lgcc

--Mary

On Thu, 31 Jan 2008, Ekin Akoglu wrote:

> Hi,
>
> I did what you suggested but this is what i got:
>
>
> ncargf77 -o cpex08 cpex08.f cpexcc.f -lg2c
> g77 -fPIC -fno-second-underscore -O -o cpex08 cpex08.f cpexcc.f -lg2c
> -L/usr/local/NCARG5.0/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext
> /usr/bin/ld: cannot find -lg2c
> collect2: ld returned 1 exit status
>
> Thanks,
>
> Ekin
>
>
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Thu Jan 31 2008 - 14:55:06 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 31 2008 - 22:46:16 MST