DragonFly BSD
DragonFly users List (threaded) for 2006-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

using pkgsrc libs


From: "Terry Tree" <terry.tree@xxxxxxxxx>
Date: Thu, 27 Apr 2006 13:17:06 -0400

How to I add /usr/pkg/lib into the search path for the dynamic loader ?

Also how do I add the /usr/pkg/include directory into the include path
for gcc ?  Right now I'm doing #include "/usr/pkg/include/gdbm.h"
where as I'd like to do #include <gdbm.h>

# gcc -o main main.c -L/usr/pkg/lib -lgdbm
# ./main test
/usr/libexec/ld-elf.so.2: Shared object "libgdbm.so.3" not found,
required by "main"
# gcc -static -o main main.c -L/usr/pkg/lib -lgdbm
# ./main test
#




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]