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

20040902: UDUNITS PC Visual Fortran


> To: <address@hidden>
> From: "Lina E. Sitz" <address@hidden>
> Subject: UDUNIT for PC
> Organization: UCAR/Unidata
> Keywords: 200409022007.i82K75vq006011

The above message contained the following:

> Hi, my name is Lina Sitz and I'm working on Physics Oceanography in
> Argentina. I need UDUNIT for PC, to use in Visual Fortran. Do have some link
> to obtain this?

The UDUNITS package was designed to be installed on UNIX-like systems
and not a Windows PC.

You could try building it manually on your PC.  I might be able to help 
you if you have problems.  This is what I would do:

    1.  Go into the "lib" subdirectory.

    2.  Compile all the C files with the C macro VISUAL_CPLUSPLUS defined.
        Use the file "Makefile.in" as a guide.
        I might be wrong about defining the VISUAL_CPLUSPLUS macro: you
        might need to define another C macro instead.  See the file
        "port/cfortran/cfortran.h" for ideas.

    3.  Create a library from the object files.

    4.  Link your program agains the library and see if it works.

> Thank you.
> Lina.

Steve Emmerson

> NOTE: All email exchanges with Unidata User Support are recorded in the
> Unidata inquiry tracking system and then made publicly available
> through the web.  If you do not want to have your interactions made
> available in this way, you must let us know in each email you send to us.