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.
Unidata Support wrote:
------- Forwarded MessageTo: address@hidden From: address@hidden Subject: failure to link to netcdfs.lib objects Organization: ESA-ESTEC Keywords: 200402191023.i1JANbrV013500 netCDF Windows linkThis is a multipart message in MIME format. --=_alternative 00391497C1256E3F_= Content-Type: text/plain; charset="us-ascii" Hello,I am presently trying to compile a FORTRAN interface to NetCDF by using the binaries provided for Win32 (my OS is actually Windows XP) :
win32 is a family of Windows OS, including XP
its likely g77 doesnt like the binaries compiled under VC++. I would try compiling everything from source with your target compiler.*netcdfs.lib (which I have put under a folder lib, directly in my directory)*ncgen.exe and ncdumps.exe (which I have put on my PATH) *netcdf.inc (in an include folder in my directory)I use g77 and Cygwin, and the lib and include folders are in my directory, so I issue the command :g77 atmemcd.f -Iinclude -Llib -lnetcdfs -o atmemcd The "include"" part goes just fine.The next thing I get is a screen dump of "undefined reference to..." and then all the netcdf objects I actually need for binding.Is there any incompatibility between the bianries provided and Windows XP, or am I just doing something very wrong with my compile command ?
Thanks in advance for your support R.C. Molina Aerodynamics and Aerothermodynamics Unit MSM-MXAESA-ESTEC--=_alternative 00391497C1256E3F_= Content-Type: text/html; charset="us-ascii" <br><font size=2 face="sans-serif">Hello,</font> <br> <br><font size=2 face="sans-serif"> I am presently trying to compile a FORTRAN interface to NetCDF by using the binaries provided for Win32 (my OS is actually Windows XP) :</font> <br> <br><font size=2 face="sans-serif">*netcdfs.lib (which I have put under a folder lib, directly in my directory)</font> <br><font size=2 face="sans-serif">*ncgen.exe and ncdumps.exe (which I have put on my PATH)</font> <br><font size=2 face="sans-serif">*netcdf.inc (in an include folder in my directory)</font> <br> <br><font size=2 face="sans-serif">I use g77 and Cygwin, and the lib and include folders are in my directory, so I issue the command :</font> <br> <br><font size=2 face="sans-serif"><b>g77 atmemcd.f -Iinclude -Llib -lnetcdfs -o atmemcd</b></font> <br> <br><font size=2 face="sans-serif">The "include"" part goes just fine.</font> <br> <br><font size=2 face="sans-serif">The next thing I get is a screen dump of "undefined reference to..." and then all the netcdf objects I actually need for binding.</font> <br> <br><font size=2 face="sans-serif">Is there any incompatibility between the bianries provided and Windows XP, or am I just doing something very wrong with my compile command ?</font> <br> <br><font size=2 face="sans-serif">Thanks in advance for your support</font> <br> <br> <br><font size=2 face="sans-serif"> R.C. Molina</font> <br> <br> <br><font size=2 face="sans-serif">Aerodynamics and Aerothermodynamics Unit MSM-MXA</font> <br> <br><font size=2 face="sans-serif">ESA-ESTEC </font> <br> --=_alternative 00391497C1256E3F_=-- -- NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publically 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. ------- End of Forwarded Message