Re: [netcdfgroup] Using UDUNITS in Fortran 90/95

Many Fortran90 compilers can compile F77 if told that is what the code is. Try compiling the udunits separately (using the option that only produces object code) and then linking with the F90 command., ie something like

f95 -o myJunk  junk.f95 udunits.o

HTH,

-Roy

On Nov 28, 2007, at 2:08 PM, Timothy Hume wrote:

Hi,

Has anyone managed to use UDUNITS with Fortran 90? There is a Fortran 77 interface, but it seems to make use of things which some Fortran 90 compilers don't recognise (such as comment lines beginning with "C" instead of "!").

I can of course change the code, but I was wondering if there is a quick and easy way to make use of the library in Fortran 90?

Thanks,

Tim Hume
Centre for Australian Weather and Climate Research
_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http:// www.unidata.ucar.edu/mailing_lists/

**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division 
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."





  • 2007 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: