This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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 >