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

Re: 20030509: gemlib.a issue



Matt,

Your class2gem.f routine must have a "PROGRAM" statement on
the first line if it is the main module for your program.

Make sure you have removed your .o files from your previous
compilation attempts that didn't use the -fno-second-underscore
flag.

Steve Chiswell
address@hidden



On Fri, 9 May 2003, Matthew J. Rosier wrote:

> Thanks Steve,
>
> The only problem I am getting now is:
>
> /usr/lib/gcc-lib/i386-redhat-linux/3.2/libfrtbegin.a(frtbegin.o): In
> function `main':
> frtbegin.o(.text+0x32): undefined reference to `MAIN__'
>
> I am not sure what this is about, any ideas?
>
> Matt
>
> ----- Original Message -----
> From: "Steve Chiswell" <address@hidden>
> To: "Matthew J. Rosier" <address@hidden>
> Cc: <address@hidden>; <address@hidden>
> Sent: Friday, May 09, 2003 6:21 PM
> Subject: 20030509: gemlib.a issue
>
>
> >
> > Matt,
> >
> > When using g77, you must include the compiler option
> > -fno-second-underscore
> >
> > (see FOPT in $CONFIGDIR/Makeinc.linux)
> >
> > Steve Chiswell
> > Unidata User Support
> >
> >
> >
> >
> > On Fri, 9 May 2003, Matthew J. Rosier wrote:
> >
> > > I am trying to compile a fortran script that converts class soundings to
> > > gempak format. It calls the gemlib.a library and I get the following
> errors:
> > >
> > > [mjrosier@dhcp1-56-98 fortrantest]$ g77 -o class2gem class2gem.f
> > > /home/gempak/lib/linux/gemlib.a
> > > /tmp/ccjH87hj.o: In function `MAIN__':
> > > /tmp/ccjH87hj.o(.text+0x84): undefined reference to `sn_clos__'
> > > /tmp/ccjH87hj.o(.text+0x4fe): undefined reference to `in_bdta__'
> > > /tmp/ccjH87hj.o(.text+0x52e): undefined reference to `er_wmsg__'
> > > /tmp/ccjH87hj.o(.text+0x57f): undefined reference to `sn_opnf__'
> > > /tmp/ccjH87hj.o(.text+0x5e8): undefined reference to `sn_cref__'
> > > /tmp/ccjH87hj.o(.text+0x61a): undefined reference to `er_wmsg__'
> > > /tmp/ccjH87hj.o(.text+0x77c): undefined reference to `sn_atim__'
> > > /tmp/ccjH87hj.o(.text+0x7ae): undefined reference to `er_wmsg__'
> > > [...etc..]
> > >
> > > Do the newer GEMPAK libraries use different names? Any ideas?
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> >
>