Subject: Re: Use of libraries installed under /usr/pkg/lib...
To: None <current-users@netbsd.org>
From: gabriel rosenkoetter <gr@eclipsed.net>
List: current-users
Date: 09/20/2001 00:03:53
--FkmkrVfFsRoUs1wW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 19, 2001 at 11:56:56PM -0400, gabriel rosenkoetter wrote:
> grappa:cs45/tish% cc -L/usr/pkg/lib -Wl,--rpath -Wl,/usr/pkg/lib -o split=
_test split_test.c tish_split.c=20
> /tmp/ccRYTMxL.o: In function `main':
> /tmp/ccRYTMxL.o(.text+0xe): undefined reference to `readline'
> collect2: ld returned 1 exit status
>=20
> What's my silly error here?

Since it may be important, the relevant bits of split_test.c:

#include <stdio.h>
#include <readline.h>
#include <history.h>
=2E..
int
main()
{
        char *line;
=2E..
        for ( ; ; ) {
                line =3D readline("> ");
=2E..
}

--=20
       ~ g r @ eclipsed.net

--FkmkrVfFsRoUs1wW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7qWqp9ehacAz5CRoRAjzMAJ45vzseYyx7YQ3jSe4Q8Bm5FgUJ1ACeOiTd
1kbzOqRYOf2Vu0XKfVPC9oM=
=tC1p
-----END PGP SIGNATURE-----

--FkmkrVfFsRoUs1wW--