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.
Clint, I looked at our WS 7.0 lib directory. There is a libf77compat that appears to contain symbols necessary to link f77 compiled libraries with your f90/f95 program. Try adding -lf77compat to your link line. Chiz >From: Clint Rowe <address@hidden> >Organization: UCAR/Unidata >Keywords: 200303241753.h2OHrkB2014163 >Chiz, >I want to rewrite a F77 program in F90 to convert some MM5 output to >gempak format. The program works fine now but when I try to compile >it with the f90 compiler instead of the f77 compiler, it cannot resolve >references in gemlib. I'm assuming this is because the standard libraries >searched by f90 are different that those searched by f77 and gemlib's >references are to libraries that would be searched when using the f77 >compiler but not the f90 compiler. So, my question(s) is/are: > >1) can I just specify some f77-specific libraries to be searched when > compiling w f90, so the references can be resolved and, if so, which > libraries do I need to specify? > >2) do I need to compile gempak using the f90 compiler and, if so, has > this been done successfully? Are there any gotchas I need to be aware of? > >3) is there another course of action I could take or should I just abandon > this project? > >Clint > >Here's the errors I get when I just try to switch to the f90 compiler: > >f90 -fast -O4 -xtarget=native -o mm5togem functions.o licalc.o pintp.o user_i > nput.o >write2gem.o dot2cross.o xyll.o mm5togem.o /home/nawips/NAWIPS-5.6h/lib/sol/gem > lib.a >/home/nawips/NAWIPS-5.6h/lib/sol/appl.a /home/nawips/NAWIPS-5.6h/lib/sol/sy > slib.a >/home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a >f90: Warning: -xarch=v8plusa is not portable >Undefined first referenced > symbol in file >__e_rdue_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > flread.o) >__e_rsfi_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > ststoi.o) >__s_wsFi_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > stinch.o) >__e_wsfe_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > ipexit.o) >__do_u_in_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > flread.o) >__f_clos /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > flclal.o) >__s_wdue_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > flwrit.o) >__f_back /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > flbksp.o) >__s_rsFi_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > ststoi.o) >__e_rsfe_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > ipdflt.o) >__s_wsFe_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > ipexit.o) >__s_rdue_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > flread.o) >__s_rsFe_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > ipdflt.o) >__s_cat /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > ssenvr.o) >__f_inqu_nv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > flinqr.o) >__do_f_out_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > ipexit.o) >__f_open_nv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > fldcre.o) >__do_f_in_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > ipdflt.o) >__s_copy /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > flinqr.o) >__do_u_out_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > flwrit.o) >__i_conv_c /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > stlcuc.o) >__e_wdue_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > flwrit.o) >__c_conv_i /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > stlcuc.o) >__e_wsfi_pv /home/nawips/NAWIPS-5.6h/lib/sol/gemlib.a( > stinch.o) >ld: fatal: Symbol referencing errors. No output written to mm5togem >*** Error code 1 >make: Fatal error: Command failed for target `mm5togem' > > > >==================================================================== >Clinton M. Rowe >Associate Professor >Meteorology/Climatology Program phone:(402)472-1946 >Department of Geosciences fax:(402)472-4917 >University of Nebraska-Lincoln address@hidden > > Unidata WWW Service http://my.unidata.ucar.edu/content/support