NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Group:I am trying to port netcdf to be used with the Absoft Fortran compiler on Windows. A a base, I am using the pre-compiled library already available. What I have done replace the supplied cfortran.h with a newer one that contains Absoft fortran, recompiled the "Fortran" c code with the Absoft compiler to create a new library, and used this to override the equivalent symbols in the existing pre-compiled binary.
My problem is that it turns out that the pre-compiled binary is not stand alone, and requires some of the Microsoft libraries. here is the list I get from my original effort to link:
# link error: undefined symbol - __iob # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/v2i.obj) # link error: undefined symbol - __chkstk # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/v2i.obj) # link error: undefined symbol - __pctype # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/string.obj) # link error: undefined symbol - __isctype # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/string.obj) # link error: undefined symbol - ___mb_cur_max # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/string.obj) # link error: undefined symbol - __ftol # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/ncx.obj) # link error: undefined symbol - _close # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/posixio.obj) # link error: undefined symbol - __errno # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/posixio.obj) # link error: undefined symbol - _open # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/posixio.obj) # link error: undefined symbol - _write # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/posixio.obj) # link error: undefined symbol - _lseek # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/posixio.obj) # link error: undefined symbol - _fstat # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/posixio.obj) # link error: undefined symbol - _read # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/posixio.obj) # link error: undefined symbol - _unlink # first ref in - C:\NETCDF_BINARIES\LIB\NETCDFS.LIB(../libsrc/posixio.obj)some but not all of these disappear if I link in libc.lib from Visual C. The posix symbols remain. Can someone suggest the correct library to link to this.
Also, awhile back, Mark Reyes posted what he said was a compact and portable version of netcdf3.4, which is at the URL ftp://sideshow.jpl.nasa.gov/pub/mjr/netcdf/netcdf-3.4_one_source.tar.gz.
Is anyone familiar with this and how it works? All help greatly appreciated. -Roy M. -- Roy Mendelssohn Pacific Fisheries Environmental Group 1352 Lighthouse Avenue Pacific Grove, CA 93950-2097 e-mail: rmendels@xxxxxxxxxxxxx voice: (831)-648-9029 fax: (831)-648-8440 www: http://www.pfeg.noaa.gov/ "Old age and treachery will overcome youth and skill." ------- End of Forwarded Message
netcdfgroup
archives: