Subject: Re: help with shared objects and crontab (again)
To: Heron Gallegos <gallegos@csxxi.sepc.edu.mx>
From: Luke Mewburn <lukem@wasabisystems.com>
List: netbsd-help
Date: 01/12/2001 12:52:51
On Thu, Jan 11, 2001 at 06:51:47PM -0600, Heron Gallegos wrote:
> 
> Hello:
> 
> I dont know what am i doing wrong:
> 
> My program uses the API of mysql and when I compile and run it, it works fine.
> 
> 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've just compiled it there.

What happens when you run it?

What does `ldd uvp' show?

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

-- 
Luke Mewburn  <lukem@wasabisystems.com>  http://www.wasabisystems.com
Luke Mewburn     <lukem@netbsd.org>      http://www.netbsd.org
Wasabi Systems - providing NetBSD sales, support and service.