Code Snippet Issue (Dlsym)

Posted by Dralnu on Sun 01 May 2005 12:41 AM — 5 posts, 23,158 views.

USA #0
Got the code installed, mostly made, but when I get to handle.o, I get
implicit declaration of dlclose/dlopen
RTLD_LAZY undeclared
pointer to interger without a cast

Any clues?
USA #1
Nevermind. I've decided to go without it just so I can learn to do things the hard way so I can appreciate the easy way. Maybe between now and then I'll figure out what I'm doing for real :-P
USA #2
Been a while since I've worked with the dlsym stuff, but try adding this

#include <dlfcn.h>


to the top of your handler.c file.
USA #3
handler.c ? Why are you making dlsym related changes to that file? It's not part of the instructions.
USA #4
You should have this up in the includes on the tops of these files:


act_wiz.c:#include <dlfcn.h>
db.c:#include <dlfcn.h>
skills.c:#include <dlfcn.h>
special.c:#include <dlfcn.h>
tables.c:#include <dlfcn.h>