Subject: Re: help with shared objects and crontab (again)
To: Luke Mewburn <lukem@wasabisystems.com>
From: Heron Gallegos <gallegos@csxxi.sepc.edu.mx>
List: netbsd-help
Date: 01/11/2001 20:51:03
YES!!!
Now my program works.

Thanks a lot

On Fri, 12 Jan 2001, Luke Mewburn wrote:

> > My program uses the API of mysql and when I compile and run it, it works fine.

My program was working fine under NetBSD-1.4.1 (running by hand)

> >
> > cc -c -I/usr/pkg/include main.c -o main.o
> > cc main.o -ggdb -o uvp -L/usr/pkg/lib/mysql -lmysqlclient -lm
>
> You'll need to link with something like:
> 	cc main.o -ggdb -o uvp -Wl,-R/usr/pkg/lib/mysql -L/usr/pkg/lib/mysql \
> 		-lmysqlclient -lm

I have compiled my program with -Wl,R option and now
works fine.

Again, thanks a lot for your answer, Luke

Regards

Heron Gallegos