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.
try adding /NODEFAULTLIB:LIBCMTD to your link command; let me know what happens ----- Original Message ----- From: "Russ Rew" <address@hidden> To: <address@hidden> Sent: Monday, May 13, 2002 9:32 AM Subject: Re: netcdf library for visual fortran5.0 on windows platform > John, > > Can you please handle this one? Thanks! > > --Russ > > >To: address@hidden > >From: "J.G.Xiong" <address@hidden> > >Subject: Re: 20020511: netcdf library for visual fortran5.0 on windows platform > >Organization: . > > > > Dear Russ Rew, > > > > I download prebuilt netcdf library and put in the library > > directory. In order to test if it works, I wrote a fortran program > > test.f like this: > > > > INCLUDE 'netcdf.inc' > > PRINT *, NF_INQ_LIBVERS() > > stop > > end > > > > Then use: "df test.f netcdfs.lib" to compile and link, but there is an > > error message: > > > > LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library > > > > My platform is windows and I use only visual fortran5.0(not any C > > compiler on my computer). I donot know how to build a new library. Are > > there any suitable library for my computer? >