undefined ref to __ctype_b

Hi netcdfgroup:

I am compiling an f90 code that links libnetcdf.a -- the source files
compile fine using pgf90, but I get the following problem when linking:


/opt/local/lib/libnetcdf.a(string.o)(.text+0x37): In function `NC_check_name':
: undefined reference to `__ctype_b'
gmake: *** [tiegcm1] Error 2
(suncat) tiegcm : 


This is on the following Linux system:

(suncat) include : uname -a
Linux suncat 2.4.20-30.9smp #1 SMP Wed Feb 4 20:36:46 EST 2004 i686 i686 i386 
GNU/Linux

This system does have a ctype.h in /usr/include, which has __ctype_b as follows:

(suncat) include : pwd
/usr/include
(suncat) include : fgrep __ctype_b ctype.h
extern __const unsigned short int **__ctype_b_loc (void)
  ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type)
  ((locale)->__ctype_b[(int) (c)] & (unsigned short int) type)
(suncat) include :

BTW, I am using the following in the Makefile:

 FC = pgf90
 FFLAGS = -I/opt/local/include -Msecond_underscore
 LIBS = -L/opt/local/lib -lnetcdf
 LDFLAGS
 

Thanks for any help on this,

--Ben



-----------------------------------------------------------------------
Ben Foster                      High Altitude Observatory (HAO)
foster@xxxxxxxx                 phone: 303-497-1595  fax: 303-497-1589  
Nat. Center for Atmos. Res.     P.O. Box 3000 Boulder CO 80307 USA
-----------------------------------------------------------------------

>From owner-netcdfgroup@xxxxxxxxxxxxxxxx    22 Wed, Apr
Date:    Wed, 22 Apr 1992 9:48:55 -0400 (EDT)
From: HOLOMANY@xxxxxxxxxxxxxxxx (Mark A. Holomany, Systems Manager, ICDD)
To: netcdfgroup@xxxxxxxxxxxxxxxx
Subject: Request for NetCDF info and program
Received: by unidata.ucar.edu id AA01424
  (5.65c/IDA-1.4.4 for netcdfgroup-send); Wed, 22 Apr 1992 07:50:02 -0600
Received: from ICDD.PREPNET.COM ([192.102.247.104]) by unidata.ucar.edu with 
SMTP id AA01418
  (5.65c/IDA-1.4.4 for <netcdfgroup@xxxxxxxxxxxxxxxx>); Wed, 22 Apr 1992 
07:49:58 -0600
Message-Id: <920422094855.8d@xxxxxxxxxxxxxxxx>
X-Vmsmail-To: SMTP%"netcdfgroup@xxxxxxxxxxxxxxxx"

  I would appreciate it if you would:
  
  1) Add me to your NetCDF mailing list
  
  2) Provide instructions to get the NetCDF packet
  
  I work at the ICDD, a non-profit database company.  Dr. Richard Lysakowski
  at DEC suggested that I contact you.
  
  Thank you in advance.
  Mark Holomany, ICDD


  • 2004 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: