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.
Stephen, >Date: Mon, 01 Dec 2003 14:54:28 -0800 >From: Stephen Leroy <address@hidden> >Organization: NASA/JPL >To: Steve Emmerson <address@hidden> >Subject: Re: 20031201: Problem with Absoft8.0 on Mac OS The above message contained the following: ... > 00005380 T _ncacpy_ ... > c_ncacpy ( > extern void ncacpy_( const int *A1 , int *fvarid1 , char * A3 , const int *A4 > , int *fvarid2 , int * A6 , unsigned C3 ) { char *B3=0; int B6; ; c_ncacpy( > (int)*A1 , (*fvarid1-1) , (!(C3<4||A3[0]||A3[1]||A3[2]||A3[3]))?0: > memchr(A3,'\0',C3) ?A3 : ((B3=(char *)malloc(C3+1))[C3]='\0', > memcpy(B3,A3,C3), kill_trailing(B3,' ')) , (int)*A4 , (*fvarid2-1) , &B6 ); > if (B3) free(B3); *A6=B6; return ; } It looks like the global symbol in the netCDF library has the correct name (_ncacpy_) but the wrong case: the linker was looking for the symbol _NCACPY_. I suspect that the cfortran.h file needs to be told to use uppercase symbols rather than lowercase ones. Would you please send me your cfortran.h file. Regards, Steve Emmerson