🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #46611

Readline Library with Solarix 2.x

#46611
From: Daniel A. Dewey
Date: Fri, 04 Nov 1994 13:40
23 lines
1973 bytes
Hello netters,
  I am trying to get the GNU Readline 2.0 library to compile under 
Solaris 2.x, with gcc version 2.5.8.  Compiling doesn't present much of a 
problem (although I do have to include <string.h> instead if <strings.h>, 
but thats an easy fix).  Linking however boggles my mind.  When I link in 
the readline library, along with the curses library
  gcc test.c -lcurses -lreadline
I get an error message, with functions being undefined.
Undefined			first referenced
 symbol  			    in file
BC                                  ./libreadline.a(readline.o)
tgetnum                             ./libreadline.a(readline.o)
PC                                  ./libreadline.a(readline.o)
tgetstr                             ./libreadline.a(readline.o)
UP                                  ./libreadline.a(readline.o)
tgoto                               ./libreadline.a(display.o)
tgetent                             ./libreadline.a(readline.o)
tgetflag                            ./libreadline.a(readline.o)
ld: fatal: Symbol referencing errors. No output written to a.out

As you can see.... the curses stuff isn't being found.  How come?  It is 
being linked though.  I'm not that familiar with libraries though, so I 
could have missed something, although I wouldn't know what.
Technical Details
Message-ID: <Pine.3.89.9411040811.A24722-0100000@atlantic>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!kutztown.edu!dewe0223
References: <78396184234n11@130.37.128.6>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,55c9c21ea83f1f89
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-11-04 05:40:16 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!kutztown.edu!dewe0223
From: dewe0223@kutztown.edu (Daniel A. Dewey)
Newsgroups: gnu.gcc.help
Subject: Readline Library with Solarix 2.x
Date: 4 Nov 1994 08:40:16 -0500
Organization: GNUs Not Usenet
Lines: 24
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <Pine.3.89.9411040811.A24722-0100000@atlantic>
References: <78396184234n11@130.37.128.6>