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.
Amala, > To: address@hidden > From: Amala Mahadevan <address@hidden> > Subject: ctype_b error > Organization: UCAR/Unidata The above message contained the following: > I have downloaded the netCDF binaries from your web site, but cannot > link libnetcdf.a to my fortran routines because of the following error > at link time: > `NC_check_name': > : undefined reference to `__ctype_b' > collect2: ld returned 1 exit status > This error is discussed in your e-mail archive (see below), but I am > unable to figure out how I can fix it in a simple way. Can I solve the > problem without compiling netCDF from source? I am using a version of > linux that is akin to Redhat linux 9.0 and have access to the system > files on my machine. I believe that you will have to build the netCDF package from source on your system in order to obtain a netCDF library that doesn't reference "__ctype_b". We don't have a RH 9 system here that we can use to generate a binary distribution. Regards, Steve Emmerson