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

Re: dlopen -> no references from host



Felix Kollmann wrote:

> Now dlopen() says: 'undefined reference 'int sendmsg (string)' o.s. .
> 
> In all: How can I make 'client.cc' using the reference of its host?

To let a dlopen()ed DSO resolves it references using symbols in the
executable binary, you have to compile the executable binary with the
-rdynamic option.

-- 
Pierre Phaneuf
Ludus Design, http://ludusdesign.com/
"First they ignore you. Then they laugh at you.
Then they fight you. Then you win." -- Gandhi