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

Re: Unix time on a DOS or OS/2 computer



>From: address@hidden (JC Liljegren)
>Organization: PNL
>Keywords: 199409022152.AA11477 netCDF OS/2 MicroSoft

Jim,

>Does this mean that I need to have a Microsoft C compiler on the OS/2
>system in order to use netCDF with MS Fortran?  

This is the only combination that we have tested, so effectively the
answer is yes.

>I got the compiled netCDF libraries from unidata.ucar.edu in the
>pub/netcdf/msdos directory, but I haven't been successful in linking
>them with my Fortran code (which works on the Sun).  The linker says it
>is looking for LLIBCE.LIB, which seems strange because the README file
>indicates the netCDF library was built using LLIBC7.LIB and I am using
>LLIBFOR7.LIB to generate Fortran executables (all under DOS at present).

We originally setup the make files (msoft.mk) to use LLIBC7.LIB but changed
when another user complained that not everyone had floating point coprocessors
installed in their machines.

>It seems entirely possible that I am not invoking the linker properly,
>but it seems so simple that I can't think of what I might be doing wrong:

I believe that you should be able to link with LLIBC7.LIB as long as you
explicitly declare it in the link line.

>Microsoft (R) Segmented-Executable Linker  Version 5.15                       
>&Copyright (C) Microsoft Corp 1984-1991.  All rights reserved.                
>  &
>&Object Modules [.OBJ]: SNOOP.obj +                                           
>  
>&Object Modules [.OBJ]: FSLEN.OBJ +                                           
>  
>&Object Modules [.OBJ]: JACKETS.OBJ                                           
>  
>&Run File [SNOOP.exe]: SNOOP.exe                                              
>  
>&List File [NUL.MAP]: NUL                                                     
>  
>&Libraries [.LIB]:  +                                                         
>  
>&Libraries [.LIB]:  +                                                         
>  
>&Libraries [.LIB]: NETCDF.LIB +                                               
>  
>&Libraries [.LIB]: XDR.LIB                                                    
>  
>&Definitions File [NUL.DEF]:  /BATCH /CO /FAR /PACKC;                         
>  
>&LINK : warning L4051: LLIBCE.lib : cannot find library                       
>  
>& 
>...followed by a list of unresolved externals which must be in LLIBCE.lib
>as well as the jacket routines I call from my Fortran program.

>Any suggestions you may have would certainly be welcome.

Simply substitute LLIBC7.LIB for LLIBCE.LIB and try to relink.  If you are
using a default (i.e. not declaring which C library to link against), then
explicitly declare LLIBC7.LIB.  You can look in the netcdf232/fortran directory
at msoft.mk to get more guidance on how we did the distribution.

Tom Yoksas