Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

[UDUNITS #MQV-830848]: UDUnits without Fortran90



Nic,

> I have been trying to build the UDUnits library on windows and have run
> into some issues. Of course this library is not officially supported on
> Windows in any form and I expected to see some problems like this. I
> have managed without too much issue to figure out something which builds
> using Visual Studio Solutions instead of makefiles, however... The
> Fortran support library will not compile and there doesn't seem to be a
> compile time flag to simply remove support for Fortran. Do you think it
> would be possible or reasonable to add such a flag (allowing the library
> to compile on Windows). Do you know anyone who we might contact who has
> already done this or something similar.

The compiler must be told what Fortran-calling conventions to use in
order to build the Fortran interface.  If you don't need the Fortran
interface, then it doesn't matter what conventions you tell the 
compiler to use.  I suggest using the "f2cFortran" conventions by 
defining that C macro in your compilation commands, e.g.,

    cc -Df2cFortran ...

> Thanks in advance,
> 
> Nic Croad.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: MQV-830848
Department: Support UDUNITS
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690