- Unresolved symbol for dlopen
- Posted by pradeep on March 5th, 2004
Hello all,
I tried to open a so dynamically using dlopen.
When I try to compile it using gcc 3.0.1, it gives
me unresolved symbol error for dlopen?
Could you help me in fixing this problem?
Best Regards,
Pradeep
- Posted by Eric Moors on March 5th, 2004
So. Where is the symbol defined?
it is in the manpage
link in the proper library with -ldl
Eric
- Posted by pradeep on March 5th, 2004
Hello Eric,
I don't know the library which I should be linking for
the dlopen().
I thought this might be in one of the standard libraries and I don't need to
link any specific lib.
Best Regards,
Pradeep
"Eric Moors" <scare.crow@oz.land> wrote in message
news:c29aji$4ga$2@news.surfnet.nl...
- Posted by Eric Moors on March 5th, 2004
pradeep wrote:
I'm not sure if you understood me corectly, so I'll tell it again.
You need libdl, and you link it in with -ldl
ie. gcc source.c -o exec.out -ldl
Eric
- Posted by pradeep on March 5th, 2004
"Eric Moors" <scare.crow@oz.land> wrote in message
news:c29k76$ol3$1@news.surfnet.nl...
Well, Thank you for the info.
I didn't know that libdl is the library which should have been linked.